Function fromAxisAngle

  • Sets a quaternion from the given angle and axis, then returns it.

    Type Parameters

    Parameters

    • axis: BaseArgType

      the axis to rotate around

    • angleInRadians: number

      the angle

    • Optional dst: T

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

    Returns T

    The quaternion that represents the given axis and angle