Contents

GLKMatrix4GetColumn(_:_:)

Retrieves a column from a 4x4 matrix.

Declaration

func GLKMatrix4GetColumn(_ matrix: GLKMatrix4, _ column: Int32) -> GLKVector4

Parameters

  • matrix:

    A 4x4 matrix.

  • column:

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

Return Value

A vector representing the column retrieved from the matrix.

Discussion

The first three components of column 3 provide the translation values tx, ty and tz.

See Also

Working With Parts of a Matrix