GLKMatrix4RotateWithVector4(_:_:_:)
Returns a new 4x4 matrix created by concatenating a matrix with a rotation around a vector.
Declaration
func GLKMatrix4RotateWithVector4(_ matrix: GLKMatrix4, _ radians: Float, _ axisVector: GLKVector4) -> GLKMatrix4Parameters
- 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.
Discussion
The w component of the rotation vector is ignored.
See Also
Performing Mathematical Operations on Matrices
GLKMatrix4Invert(_:_:)GLKMatrix4Transpose(_:)GLKMatrix4InvertAndTranspose(_:_:)GLKMatrix4Multiply(_:_:)GLKMatrix4Rotate(_:_:_:_:_:)GLKMatrix4RotateWithVector3(_:_:_:)GLKMatrix4RotateX(_:_:)GLKMatrix4RotateY(_:_:)GLKMatrix4RotateZ(_:_:)GLKMatrix4Scale(_:_:_:_:)GLKMatrix4ScaleWithVector3(_:_:)GLKMatrix4ScaleWithVector4(_:_:)GLKMatrix4Translate(_:_:_:_:)GLKMatrix4TranslateWithVector3(_:_:)GLKMatrix4TranslateWithVector4(_:_:)