Information about the camera position and imaging characteristics for a given frame.
SDK
- iOS 11.0+
Framework
- ARKit
Information about the camera position and imaging characteristics for a given frame.
SDK
Framework
var tracking State: ARCamera .Tracking State
The general quality of position tracking available when the camera captured a frame.
enum ARCamera .Tracking State
Values for position tracking quality, with possible causes when tracking quality is limited.
var transform: simd _float4x4
The position and orientation of the camera in world coordinate space.
var euler Angles: simd _float3
The orientation of the camera, expressed as roll, pitch, and yaw values.
var image Resolution: CGSize
The width and height, in pixels, of the captured camera image.
var intrinsics: simd _float3x3
A matrix that converts between the 2D camera plane and 3D world coordinate space.
var projection Matrix: simd _float4x4
A transform matrix appropriate for rendering 3D content to match the image captured by the camera.
func projection Matrix(for: UIInterface Orientation, viewport Size: CGSize, z Near: CGFloat, z Far: CGFloat) -> simd _float4x4
Returns a transform matrix appropriate for rendering 3D content to match the image captured by the camera, using the specified parameters.
func view Matrix(for: UIInterface Orientation) -> simd _float4x4
Returns a transform matrix for converting from world space to camera space.
func project Point(simd _float3, orientation: UIInterface Orientation, viewport Size: CGSize) -> CGPoint
Returns the projection of a point from the 3D world space detected by ARKit into the 2D space of a view rendering the scene.
func unproject Point(CGPoint, onto Plane: simd _float4x4, orientation: UIInterface Orientation, viewport Size: CGSize) -> simd _float3?
Returns the projection of a point from the 2D space of a view rendering the scene onto a plane in the 3D world space detected by ARKit.
var exposure Duration: Time Interval
A value you use to effect motion blur when rendering your app's virtual content.
var exposure Offset: Float
A value you supply to your custom renderer to light your scene.
Cover your app’s virtual content with people that ARKit perceives in the camera feed.
class ARFrame
A video image captured as part of a session with position tracking information.