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
wThe w component
Readonly
wgslWGSL string representation for float type
Readonly
wgslWGSL string representation for integer type
Readonly
xThe x component
Readonly
yThe y component
Readonly
zThe z component
Calculates dot product with another Vector4.
Other vector
Dot product
Checks equality with another Vector4 within tolerance.
Vector to compare with
Optional
delta: numberOptional tolerance
True if approximately equal
Checks strict equality with another Vector4.
Vector to compare with
True if exactly equal
Calculates distance to another Vector4.
Target vector
Distance
Interface for immutable 4D vectors. Provides operations specific to 4-component vectors (homogeneous coordinates).