Interface TransformInterface

Transform coordinates and quaternions from one coordinate reference system into another one

Hierarchy

  • TransformInterface

Properties

Source coordinate reference system

Target coordinate reference system

Methods

  • Compute and return the inverse transform, i.e., the one that transforms from the target to the source reference system.

    Returns

    Inverse transform

    Returns TransformInterface

  • Transform a two-dimensional vector from the source to the target reference system.

    This method operates in-place, i.e., the vector is modified.

    Returns

    Transformed vector (same object as the argument)

    Parameters

    • vector: Vector2

      Vector to transform

    Returns Vector2

  • Transform a three-dimensional vector from the source to the target reference system.

    This method operates in-place, i.e., the vector is modified.

    Returns

    Transformed vector (same object as the argument)

    Parameters

    • vector: Vector3

      Vector to transform

    Returns Vector3

  • Transform a quaternion from the source to the target reference system.

    Returns

    Transformed quaternion (same object as the argument)

    Parameters

    • quaternion: Quaternion

      Quaternion to transform

    • Optional location: Vector3 | Vector2

    Returns Quaternion

Generated using TypeDoc