Contents

GLKMatrix4SetColumn(_:_:_:)

Returns a new 4x4 matrix with one column replaced by a new vector.

Declaration

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

Parameters

  • matrix:

    The source matrix.

  • column:

    The index of the column to replace, which must be a number between 0 and 3, inclusive.

  • vector:

    A vector holding the replacement component values.

Return Value

A new 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