AbstractGets the class name of this vector instance.
The constructor name of the class
Gets the x-component (first component) of the vector.
The x-component value
Gets the component value at the specified index.
The index of the component to retrieve
The component value at the given index
Calculates the dot product between this vector and another vector.
The dot product result
Checks if this vector is a dummy (empty) vector. A dummy vector has no components and is typically used as a placeholder.
True if the vector is dummy, false otherwise
Checks if this vector is approximately equal to another vector within a specified tolerance.
Optional_delta: numberTrue if vectors are approximately equal, false otherwise
Checks if this vector is strictly equal to another vector (exact equality).
True if vectors are exactly equal, false otherwise
Checks if the internal storage shares the same ArrayBuffer as the provided one. Useful for determining if vectors share underlying memory.
The ArrayBuffer to compare against
True if the same ArrayBuffer is used, false otherwise
Calculates the distance from this vector to another vector.
The distance between the vectors
Gets the component value at the specified index. Alias for the at() method for convenience.
The index of the component to retrieve
The component value at the given index
Abstract base class for vector implementations. Provides common functionality and defines the interface that all vector classes must implement. This class handles basic vector operations and serves as a foundation for specific vector types.