GLKMatrixStackTranslate(_:_:_:_:)
Replaces the contents of the top matrix with a matrix calculated by composing the top matrix with a translation operation.
Declaration
func GLKMatrixStackTranslate(_ stack: GLKMatrixStack, _ tx: Float, _ ty: Float, _ tz: Float)Parameters
- stack:
A matrix stack.
- tx:
The amount to translate the position along the
x-axis. - ty:
The amount to translate the position along the
y-axis. - tz:
The amount to translate the position along the
z-axis.
See Also
Functions
GLKMatrixStackCreate(_:)GLKMatrixStackGetMatrix2(_:)GLKMatrixStackGetMatrix3(_:)GLKMatrixStackGetMatrix3Inverse(_:)GLKMatrixStackGetMatrix3InverseTranspose(_:)GLKMatrixStackGetMatrix4(_:)GLKMatrixStackGetMatrix4Inverse(_:)GLKMatrixStackGetMatrix4InverseTranspose(_:)GLKMatrixStackGetTypeID()GLKMatrixStackLoadMatrix4(_:_:)GLKMatrixStackMultiplyMatrix4(_:_:)GLKMatrixStackMultiplyMatrixStack(_:_:)GLKMatrixStackPop(_:)GLKMatrixStackPush(_:)GLKMatrixStackRotate(_:_:_:_:_:)