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

# GLKMatrix4MultiplyVector3ArrayWithTranslation(_:_:_:)

Multiplies a `4x4` matrix by an array of `3`-component vectors, applying translation.

```
func GLKMatrix4MultiplyVector3ArrayWithTranslation(_ matrix: GLKMatrix4, _ vectors: UnsafeMutablePointer<GLKVector3>, _ vectorCount: Int)
```

## Parameters

`matrix`

The matrix multiplicand.

`vectors`

On entry, an array of input vectors. On return, an array of output vectors.

`vectorCount`

The number of vectors in the array.

## Discussion

The input vectors are treated as they were 4-component vectors 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)