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

# GLKMatrix4MultiplyAndProjectVector3(_:_:)

Multiplies a 4x4 matrix by a position vector to create a vector in homogenous coordinates, then projects the result to a 3-component vector.

## Declaration

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

## Parameters

- `matrixLeft`: The matrix multiplicand.
- `vectorRight`: The vector multiplier.

## Return Value

Return Value A new vector created by first multiplying the matrix by the vector and then performing perspective division on the result vector.

## Discussion

Discussion

## See Also

### Performing Mathematical Operations on Vectors

- [GLKMatrix4MultiplyVector3(_:_:)](glkit/glkmatrix4multiplyvector3(_:_:).md)
- [GLKMatrix4MultiplyVector3Array(_:_:_:)](glkit/glkmatrix4multiplyvector3array(_:_:_:).md)
- [GLKMatrix4MultiplyVector3WithTranslation(_:_:)](glkit/glkmatrix4multiplyvector3withtranslation(_:_:).md)
- [GLKMatrix4MultiplyVector3ArrayWithTranslation(_:_:_:)](glkit/glkmatrix4multiplyvector3arraywithtranslation(_:_:_:).md)
- [GLKMatrix4MultiplyVector4(_:_:)](glkit/glkmatrix4multiplyvector4(_:_:).md)
- [GLKMatrix4MultiplyVector4Array(_:_:_:)](glkit/glkmatrix4multiplyvector4array(_:_:_:).md)
- [GLKMatrix4MultiplyAndProjectVector3Array(_:_:_:)](glkit/glkmatrix4multiplyandprojectvector3array(_:_:_:).md)
