Function rotationTo

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

    Parameters

    • aUnit: Vec3

      the start vector

    • bUnit: Vec3

      the end vector

    • Optional dst: Quat

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

    Returns Quat

    the result