Function toAxisAngle

  • Gets the rotation axis and angle

    Type Parameters

    Parameters

    • q: BaseArgType

      quaternion to compute from

    • Optional dst: T

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

    Returns {
        angle: number;
        axis: T;
    }

    angle and axis

    • angle: number
    • axis: T