The underlying typed array
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 scalar value (x component)
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
Interface for scalar values (1-component vectors).