The X component of the vector.
The Y component of the vector.
The Z component of the vector.
Scales another vector and adds it to this vector.
The value to add to the X component.
The value to add to the Y component.
The value to add to the Z component.
The scaling to apply to the input vector.
This instance.
Adds another vector to this vector.
The value to add to the X component.
The value to add to the Y component.
The value to add to the Z component.
This instance.
Return the components of this vector as an array.
The components of this vector as an array.
Clamps the components of the vector at the given boundary.
The lowest value to allow.
The largest value to allow.
This instance.
Divides the vector by the given scale.
The scaling to apply to the vector.
This instance.
Divides this vector by another vector.
The value to divide the X component with.
The value to divide the Y component with.
The value to divide the Z component with.
This instance.
Returns the dot product between two vectors.
The X component of the other vector.
The Y component of the other vector.
The Z component of the other vector.
The dot product between the two vectors.
Calculates the reflection of this vector, based on the angle of incident into a material with the given refractive index, according to Snell's law. This vector is then set to the result.
This instance.
Inverts the direction of the vector.
This instance.
Inverts the vectors scale.
This instance.
Calculates the length of the vector.
The length of the vector.
Multiplies the vector by the given scale.
The scaling to apply to the vector.
This instance.
Multiplies this vector by another vector.
The value to multiply with the X component.
The value to multiply with the Y component.
The value to multiply with the Z component.
This instance.
Normalizes the vector.
This instance.
Sets the vector to new coordinates.
The new X component for the vector.
The new Y component for the vector.
The new Z component for the vector.
This instance.
Subtracts another vector from this vector.
The vector to subtract from this vector.
This instance.
Subtracts another vector from this vector.
The value to subtract from the X component.
The value to subtract from the Y component.
The value to subtract from the Z component.
This instance.
Transform the vector with a Transformation
.
The transformation to apply.
This instance.
Inversely transform the vector with a Transformation
.
The transformation to apply.
This instance.
Static
from
A vector with 3 components, labeled:
X
,Y
,Z
.