rhodonite
    Preparing search index...

    Class VectorN

    VectorN represents an N-dimensional vector with arbitrary length. This class provides basic vector operations using TypedArray for efficient memory usage.

    Hierarchy (View Summary)

    Index
    • Creates a new VectorN instance.

      Parameters

      • typedArray: TypedArray

        The typed array containing the vector components

      Returns VectorN

    • Creates a deep copy of this vector.

      Returns VectorN

      A new VectorN instance with the same components as this vector

    • Parameters

      Returns void

    • Parameters

      • i: number

      Returns number

    • Checks if this vector is a dummy vector (has no components).

      Returns boolean

      True if the vector has no components, false otherwise

    • Parameters

      • i: number
      • value: number

      Returns void

    • Creates a dummy vector with no components.

      Returns VectorN

      A new dummy VectorN instance