Contents

GLKMatrix4GetRow(_:_:)

Retrieves a row from a 4x4 matrix.

Declaration

func GLKMatrix4GetRow(_ matrix: GLKMatrix4, _ row: Int32) -> GLKVector4

Parameters

  • matrix:

    A 4x4 matrix.

  • row:

    The row index, which must be a number between 0 and 3, inclusive.

Return Value

A vector representing the row retrieved from the matrix.

Discussion

The last component of rows 0 through 2 correspond to the translation values tx, ty, and tz, respectively.

See Also

Working With Parts of a Matrix