The underlying typed array
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
ReadonlywgslWGSL string representation for float type
ReadonlywgslWGSL string representation for integer type
ReadonlyxThe 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
Optionaldelta: 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).