Readonly_vThe underlying typed array containing vector components
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 x component
ReadonlyyThe y component
Calculates dot product with another Vector2.
Other vector
Dot product
Checks equality with another Vector2 within tolerance.
Vector to compare with
Optionaldelta: numberOptional tolerance
True if approximately equal
Checks strict equality with another Vector2.
Vector to compare with
True if exactly equal
Calculates distance to another Vector2.
Target vector
Distance
Interface for immutable 2D vectors. Provides operations specific to 2-component vectors.