Function fromAxisAngle

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

    Parameters

    • axis: Vec3

      the axis to rotate around

    • angleInRadians: number

      the angle

    • Optional dst: Quat

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

    Returns Quat

    The quaternion that represents the given axis and angle