<!--
{
  "availability" : [
    "iOS: 5.0.0 -",
    "iPadOS: 5.0.0 -",
    "macOS: 10.8.0 -",
    "tvOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "GLKit",
  "identifier" : "/documentation/GLKit/GLKMatrix4MakeWithRows(_:_:_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "GLKit"
    ],
    "preciseIdentifier" : "c:@F@GLKMatrix4MakeWithRows"
  },
  "title" : "GLKMatrix4MakeWithRows(_:_:_:_:)"
}
-->

# GLKMatrix4MakeWithRows(_:_:_:_:)

Returns a `4x4` matrix created from four row vectors.

```
func GLKMatrix4MakeWithRows(_ row0: GLKVector4, _ row1: GLKVector4, _ row2: GLKVector4, _ row3: GLKVector4) -> GLKMatrix4
```

## Parameters

`row0`

The first row. The last component of the vector provides the x coordinate’s translation value.

`row1`

The second row. The last component of the vector provides the y coordinate’s translation value.

`row2`

The third row. The last component of the vector provides the z coordinate’s translation value.

`row3`

The fourth row.

## Return Value

A new matrix.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)