Contents

GLKQuaternionMakeWithAngleAndVector3Axis(_:_:)

Creates a quaternion that represents a rotation around an axis.

Declaration

func GLKQuaternionMakeWithAngleAndVector3Axis(_ radians: Float, _ axisVector: GLKVector3) -> GLKQuaternion

Parameters

  • radians:

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

  • axisVector:

    The axis of rotation.

Return Value

A new quaternion.

See Also

Creating Quaternions