Readonly
_vThe underlying typed array containing vector components
Readonly
bytesNumber of bytes per component in the underlying array
Readonly
classThe class name identifier
Readonly
glslGLSL string representation for float type
Readonly
glslGLSL string representation for integer type
Readonly
wgslWGSL string representation for float type
Readonly
wgslWGSL string representation for integer type
Readonly
xThe x component of the vector
Calculates the dot product with another vector.
The other vector
The dot product result
Checks if this vector is equal to another vector within a tolerance.
The vector to compare with
Optional
delta: numberOptional tolerance value (default: small epsilon)
True if vectors are approximately equal
Checks if this vector is strictly equal to another vector.
The vector to compare with
True if vectors are exactly equal
Calculates the distance to another vector.
The target vector
The distance between vectors
Base interface for immutable vector types. Provides common read-only operations for vector mathematics.