Methods
Static
add
- add(v1, v2): Vector3
-
Returns Vector3
Static
clamp
- clamp(v, limits?): Vector3
-
Parameters
-
v: Vector3
-
Optional
limits: {
max?: Partial<Vector3>;
min?: Partial<Vector3>;
}
-
Optional
max?: Partial<Vector3>
-
Optional
min?: Partial<Vector3>
Returns Vector3
Static
cross
- cross(a, b): Vector3
-
Returns Vector3
Static
dot
- dot(a, b): number
-
Returns number
Static
equals
- equals(v1, v2): boolean
-
Returns boolean
Static
floor
- floor(v): Vector3
-
Returns Vector3
Static
magnitude
- magnitude(v): number
-
Returns number
Static
normalize
- normalize(v): Vector3
-
Returns Vector3
Static
scale
- scale(v1, scale): Vector3
-
Parameters
-
v1: Vector3
-
scale: number
Returns Vector3
Static
subtract
- subtract(v1, v2): Vector3
-
Returns Vector3
Static
toString
- toString(v, options?): string
-
Parameters
-
v: Vector3
-
Optional
options: {
decimals?: number;
delimiter?: string;
}
-
Optional
decimals?: number
-
Optional
delimiter?: string
Returns string
Utilities operating on Vector3 objects. All methods are static and do not modify the input objects.