Contents

GLKMatrix4Translate(_:_:_:_:)

Returns a new 4x4 matrix created by concatenating a matrix with a translation transform.

Declaration

func GLKMatrix4Translate(_ matrix: GLKMatrix4, _ tx: Float, _ ty: Float, _ tz: Float) -> GLKMatrix4

Parameters

  • matrix:

    A matrix.

  • tx:

    The amount to translate the x component.

  • ty:

    The amount to translate the y component.

  • tz:

    The amount to translate the z component.

Return Value

A new matrix.

See Also

Performing Mathematical Operations on Matrices