The underlying typed array containing vector components (mutable)
ReadonlybytesNumber of bytes per component in the underlying array
ReadonlyclassThe class name identifier
ReadonlyglslGLSL string representation for float type
ReadonlyglslGLSL string representation for integer type
ReadonlyglslGLSL string representation for unsigned integer type
ReadonlywThe w component (homogeneous coordinate, read-only)
ReadonlywgslWGSL string representation for float type
ReadonlywgslWGSL string representation for integer type
ReadonlywgslWGSL string representation for unsigned integer type
The x component (mutable)
The y component (mutable)
The z component (mutable)
Adds another Vector3 to this vector.
Vector to add
This vector for chaining
Gets component at index.
Component index (0=x, 1=y, 2=z)
Component value
Copies components from another Vector3.
Source vector
This vector for chaining
Calculates the cross product with another Vector3.
Vector to cross with
This vector for chaining
Divides vector by scalar.
Scalar divisor
This vector for chaining
Divides vector component-wise by another Vector3.
Vector to divide by
This vector for chaining
Calculates dot product with another Vector3.
Other vector
Dot product
Converts the vector to a flat array.
Array containing [x, y, z]
Checks if this is a dummy vector.
True if dummy
Checks equality with another Vector3 within tolerance.
Vector to compare with
Optionaldelta: numberOptional tolerance
True if approximately equal
Checks strict equality with another Vector3.
Vector to compare with
True if exactly equal
Checks if this vector shares the same source array buffer.
The array buffer to check
True if using the same source buffer
Calculates vector length.
Vector magnitude
Calculates squared length.
Squared magnitude
Multiplies vector by scalar.
Scalar multiplier
This vector for chaining
Multiplies this vector by a quaternion rotation.
Quaternion to multiply by
This vector for chaining
Multiplies vector component-wise by another Vector3.
Vector to multiply by
This vector for chaining
Sets component at index.
Component index (0=x, 1=y, 2=z)
New value
This vector for chaining
Sets all three components.
X component value
Y component value
Z component value
This vector for chaining
Subtracts another Vector3 from this vector.
Vector to subtract
This vector for chaining
Returns a string representation of the vector.
String representation
Returns an approximate string representation with rounded values.
Approximate string representation
Gets the component value at the specified index (alias for at).
The component index
The component value
Interface for mutable 3D vectors. Provides in-place operations for 3-component vectors including cross product and quaternion multiplication.