GLKMatrix3MakeRotation(_:_:_:_:)
Returns a 3x3 matrix that performs a rotation around an arbitrary vector.
Declaration
func GLKMatrix3MakeRotation(_ radians: Float, _ x: Float, _ y: Float, _ z: Float) -> GLKMatrix3Parameters
- radians:
The angle of the rotation (a positive angle is counterclockwise).
- x:
The
xcomponent of the rotation vector. - y:
The
ycomponent of the rotation vector. - z:
The
zcomponent of the rotation vector.
Return Value
A new rotation matrix.
See Also
Creating Matrices
GLKMatrix3Make(_:_:_:_:_:_:_:_:_:)GLKMatrix3MakeAndTranspose(_:_:_:_:_:_:_:_:_:)GLKMatrix3MakeWithArray(_:)GLKMatrix3MakeWithArrayAndTranspose(_:)GLKMatrix3MakeWithColumns(_:_:_:)GLKMatrix3MakeWithRows(_:_:_:)GLKMatrix3MakeXRotation(_:)GLKMatrix3MakeYRotation(_:)GLKMatrix3MakeZRotation(_:)GLKMatrix3MakeWithQuaternion(_:)GLKMatrix3MakeScale(_:_:_:)