GLKQuaternionMakeWithAngleAndAxis(_:_:_:_:)
Creates a quaternion that represents a rotation around an axis.
Declaration
func GLKQuaternionMakeWithAngleAndAxis(_ radians: Float, _ x: Float, _ y: Float, _ z: Float) -> GLKQuaternionParameters
- radians:
The angle of the rotation in radians (a positive angle is counterclockwise).
- x:
The
xcomponent of the axis. - y:
The
ycomponent of the axis. - z:
The
zcomponent of the axis.
Return Value
A new quaternion.