Constructors
constructor
-
Parameters
-
x: number
-
y: number
-
z: number
-
Parameters
-
arr: [number, number, number]
-
Parameters
-
Parameters
Properties
Readonly x
x: number
Readonly y
y: number
Readonly z
z: number
Static Readonly back
Static Readonly down
Static Readonly forward
Static Readonly left
Static Readonly negativeInfinity
Static Readonly one
Static Readonly positiveInfinity
Static Readonly right
Static Readonly up
Static Readonly zero
Accessors
length
-
Returns number
Methods
add
-
Parameters
-
x: number
-
y: number
-
z: number
-
Parameters
-
Parameters
-
array: [number, number, number]
-
Parameters
angleTo
-
Parameters
Returns number
angleToDegrees
- angleToDegrees(vector: IVector3): number
-
Parameters
Returns number
cross
-
Parameters
-
x: number
-
y: number
-
z: number
-
Parameters
-
Parameters
-
array: [number, number, number]
-
Parameters
distanceTo
-
Parameters
Returns number
distanceToSquared
- distanceToSquared(vector: IVector3): number
-
Parameters
Returns number
div
-
Parameters
-
x: number
-
y: number
-
z: number
-
Parameters
-
Parameters
-
array: [number, number, number]
-
Parameters
dot
- dot(x: number, y: number, z: number): number
- dot(value: number): number
- dot(array: [number, number, number]): number
- dot(vector: IVector3): number
-
Parameters
-
x: number
-
y: number
-
z: number
Returns number
-
Parameters
Returns number
-
Parameters
-
array: [number, number, number]
Returns number
-
Parameters
Returns number
inverse
-
isInRange
- isInRange(vector: IVector3, range: number): boolean
-
Parameters
Returns boolean
lerp
-
Parameters
mul
-
Parameters
-
x: number
-
y: number
-
z: number
-
Parameters
-
Parameters
-
array: [number, number, number]
-
Parameters
negative
-
normalize
-
sub
-
Parameters
-
x: number
-
y: number
-
z: number
-
Parameters
-
Parameters
-
array: [number, number, number]
-
Parameters
toArray
- toArray(): [number, number, number]
-
Returns [number, number, number]
toDegrees
-
toFixed
- toFixed(precision: number): Vector3
-
Parameters
toRadians
-
toString
-
Returns string
(0, -1, 0) vector