Skip to main content
API Reference NSDK PlaybackCamera

projectPoint

Projects a 3D world-space point into 2D viewport pixel coordinates (origin top-left)....

Declaration

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

Summary

Projects a 3D world-space point into 2D viewport pixel coordinates (origin top-left).
Returns (-1, -1) if the point is behind the camera. Uses intrinsics and view for the given orientation.