---
title: "projectPoint(_:orientation:viewportSize:)"
framework: arkit
role: symbol
role_heading: Instance Method
path: "arkit/arcamera/projectpoint(_:orientation:viewportsize:)"
---

# projectPoint(_:orientation:viewportSize:)

Returns the projection of a point from the 3D world space detected by ARKit into the 2D space of a view rendering the scene.

## Declaration

```swift
func projectPoint(_ point: simd_float3, orientation: UIInterfaceOrientation, viewportSize: CGSize) -> CGPoint
```

## Parameters

- `point`: The 3D world-space point to project into 2D view space.
- `orientation`: The orientation in which the camera image is to be presented.
- `viewportSize`: The size, in points, of the view in which the camera image is to be presented.

## Return Value

Return Value The projection of the specified point into a 2D pixel coordinate space whose origin is in the upper left corner and whose size matches that of the viewportSize parameter.

## Discussion

Discussion If you display AR content with SceneKit, the ARSCNView class provides an otherwise equivalent projectPoint(_:) method that requires fewer parameters (because the view can infer its orientation and size).

## See Also

### Applying Camera Geometry

- [projectionMatrix](arkit/arcamera/projectionmatrix.md)
- [projectionMatrix(for:viewportSize:zNear:zFar:)](arkit/arcamera/projectionmatrix(for:viewportsize:znear:zfar:).md)
- [viewMatrix(for:)](arkit/arcamera/viewmatrix(for:).md)
- [unprojectPoint(_:ontoPlane:orientation:viewportSize:)](arkit/arcamera/unprojectpoint(_:ontoplane:orientation:viewportsize:).md)
