Contents

GLKMatrix4MakeTranslation(_:_:_:)

Returns a 4x4 matrix that performs a translation.

Declaration

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

Parameters

  • 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 translation matrix.

See Also

Creating Matrices