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

# GLKMathProject(_:_:_:_:)

Projects a point in object space into the window coordinate system.

## Declaration

```swift
func GLKMathProject(_ object: GLKVector3, _ model: GLKMatrix4, _ projection: GLKMatrix4, _ viewport: UnsafeMutablePointer<Int32>) -> GLKVector3
```

## Parameters

- `object`: The point in object space.
- `model`: A modelview transformation matrix.
- `projection`: A projection matrix.
- `viewport`: A pointer to an array of four integer values. The first pair of values represent the window coordinates of the viewport’s bottom left corner. The second pair of values represent the width and height of the view port.

## Return Value

Return Value The projected point in window coordinates.

## See Also

### Projecting Vectors

- [GLKMathUnproject(_:_:_:_:_:)](glkit/glkmathunproject(_:_:_:_:_:).md)
