---
title: "GLKMatrix3SetColumn(_:_:_:)"
framework: GLKit
role: symbol
role_heading: Function
platforms: [iOS 5.0+, iPadOS 5.0+, macOS 10.8+, tvOS 9.0+]
path: "glkit/glkmatrix3setcolumn(_:_:_:)"
---

# GLKMatrix3SetColumn(_:_:_:)

Returns a new 3x3 matrix with one column replaced by a new vector.

## Declaration

```swift
func GLKMatrix3SetColumn(_ matrix: GLKMatrix3, _ column: Int32, _ vector: GLKVector3) -> GLKMatrix3
```

## Parameters

- `matrix`: The source matrix.
- `column`: The index of the column to replace, which must be a number between 0 and 2, inclusive.
- `vector`: A vector holding the replacement component values.

## Return Value

Return Value A new matrix.

## See Also

### Working With Parts of a Matrix

- [GLKMatrix3GetMatrix2(_:)](glkit/glkmatrix3getmatrix2(_:).md)
- [GLKMatrix3GetColumn(_:_:)](glkit/glkmatrix3getcolumn(_:_:).md)
- [GLKMatrix3GetRow(_:_:)](glkit/glkmatrix3getrow(_:_:).md)
- [GLKMatrix3SetRow(_:_:_:)](glkit/glkmatrix3setrow(_:_:_:).md)
