Contents

GLKMatrix4RotateWithVector3(_:_:_:)

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

Declaration

func GLKMatrix4RotateWithVector3(_ matrix: GLKMatrix4, _ radians: Float, _ axisVector: GLKVector3) -> GLKMatrix4

Parameters

  • matrix:

    A matrix.

  • radians:

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

  • axisVector:

    The axis to perform the rotation around.

Return Value

A new matrix.

See Also

Performing Mathematical Operations on Matrices