Contents

GLKMatrix3RotateWithVector4(_:_:_:)

Returns a new 3x3 matrix created by concatenating a matrix with a rotation around a vector.

Declaration

func GLKMatrix3RotateWithVector4(_ matrix: GLKMatrix3, _ radians: Float, _ axisVector: GLKVector4) -> GLKMatrix3

Parameters

  • matrix:

    The source 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.

Discussion

The w-component of the axisVector parameter is ignored.

See Also

Performing Mathematical Operations on Matrices