Contents

GLKMatrix4Rotate(_:_:_:_:_:)

Returns a new 4x4 matrix created by concatenating a matrix with a rotation around a vector.

Declaration

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

Parameters

  • matrix:

    A matrix.

  • 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 matrix.

See Also

Performing Mathematical Operations on Matrices