Contents

GLKQuaternionMakeWithAngleAndAxis(_:_:_:_:)

Creates a quaternion that represents a rotation around an axis.

Declaration

func GLKQuaternionMakeWithAngleAndAxis(_ radians: Float, _ x: Float, _ y: Float, _ z: Float) -> GLKQuaternion

Parameters

  • radians:

    The angle of the rotation in radians (a positive angle is counterclockwise).

  • x:

    The x component of the axis.

  • y:

    The y component of the axis.

  • z:

    The z component of the axis.

Return Value

A new quaternion.

See Also

Creating Quaternions