Constructors

  • Initializes the vector to the specified coordinates and modification state. The returned vector is not locked.

    Parameters

    • coords: [number, number, number] = ...

      Three numbers corresponding to the x, y, and z coordinates. Default is [0, 0, 0].

    • modified: boolean = false

      The modification state. Default is false.

    Returns Vector3

Accessors

Methods

  • Pre-multiplies the column vector corresponding to this vector by the matrix. The result is applied to this vector. Strictly speaking, this method does not make much sense because the dimensions of the square matrix and column vector don't match. TODO: Used by TubeSimplexGeometry.

    Parameters

    • σ: Matrix4

      The 4x4 matrix that pre-multiplies this column vector.

    Returns Vector3

    this

    applyMatrix4

  • Copies the coordinate values into this Vector3.

    Parameters

    • coordinates: number[]

    Returns this

  • this ⟼ I * B

    Sets this vector to the dual of the bivector, B. If changeSign is true, the direction of the resulting vector is reversed.

    Parameters

    Returns Vector3

    dual

  • this ⟼ this, with components modified.

    Parameters

    • x: number
    • y: number
    • z: number

    Returns this

  • Returns the (Euclidean) inner product of this vector with itself.

    Returns number

    this ⋅ this or norm(this) * norm(this)

    squaredNorm

  • Creates a vector with the specified cartesian coordinates. The returned vector is not locked. The returned vector is not modified.

    Parameters

    • x: number

      The x-coordinate.

    • y: number

      The y-coordinate.

    • z: number

      The z-coordinate.

    Returns Vector3