GLKMatrix4SetRow(_:_:_:)
Returns a new 4x4 matrix with one row replaced by a new vector.
Declaration
func GLKMatrix4SetRow(_ matrix: GLKMatrix4, _ row: Int32, _ vector: GLKVector4) -> GLKMatrix4Parameters
- matrix:
The source matrix.
- row:
The index of the row to replace, which must be a number between
0and3, inclusive. - vector:
A vector holding the replacement component values.
Return Value
A new matrix.
Discussion
The last component of rows 0 through 2 correspond to the translation values tx, ty, and tz, respectively.