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

# GLKMatrix4MultiplyVector3WithTranslation(_:_:)

Multiplies a `4x4` matrix by a `3`-component vector, applying translation.

```
func GLKMatrix4MultiplyVector3WithTranslation(_ matrixLeft: GLKMatrix4, _ vectorRight: GLKVector3) -> GLKVector3
```

## Parameters

`matrixLeft`

The matrix multiplicand.

`vectorRight`

The vector multiplier.

## Return Value

A new vector created by multiplying the matrix by the vector.

## Discussion

The input vector is treated as it were a 4-component vector with a `w`-component of `1.0`.

---

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)