<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ARKit",
  "identifier" : "/documentation/ARKit/ARCamera/projectPoint(_:viewRotationAngle:viewportSize:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "ARKit"
    ],
    "preciseIdentifier" : "c:objc(cs)ARCamera(im)projectPoint:viewRotationAngle:viewportSize:"
  },
  "title" : "projectPoint(_:viewRotationAngle:viewportSize:)"
}
-->

# projectPoint(_:viewRotationAngle:viewportSize:)

Project a 3D point in world coordinate system into 2D viewport space.

```
func projectPoint(_ point: simd_float3, viewRotationAngle: CGFloat, viewportSize: CGSize) -> CGPoint
```

## Parameters

`point`

3D point in world coordinate system.

`viewRotationAngle`

View rotation angle in degrees.

`viewportSize`

Viewport (or image) size.

## Return Value

2D point in viewport coordinate system with origin at top-left.

## Discussion

The view angle, in degrees, is the clockwise rotation needed to keep the camera image level with the horizon
(`0` LandscapeRight, `90` Portrait, `180` LandscapeLeft, `270` PortraitUpsideDown). Obtain it from
`ARSession.viewRotationAngle`.

---

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)