Contents

GLKMatrix4MakeRotation(_:_:_:_:)

Returns a 4x4 matrix that performs a rotation around an arbitrary vector.

Declaration

func GLKMatrix4MakeRotation(_ radians: Float, _ x: Float, _ y: Float, _ z: Float) -> GLKMatrix4

Parameters

  • radians:

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

  • x:

    The x component of the rotation vector.

  • y:

    The y component of the rotation vector.

  • z:

    The z component of the rotation vector.

Return Value

A new rotation matrix.

See Also

Creating Matrices