Function rotationTo

  • Computes a quaternion to represent the shortest rotation from one vector to another.

    Type Parameters

    Parameters

    • aUnit: BaseArgType

      the start vector

    • bUnit: BaseArgType

      the end vector

    • Optional dst: T

      quaternion to hold result. If not passed in a new one is created.

    Returns T

    the result