Struct XRCameraIntrinsics
Camera intrinsics describe physical characteristics of a camera.
Implements
Inherited Members
Namespace: UnityEngine.XR.ARSubsystems
Assembly: solution.dll
Syntax
public struct XRCameraIntrinsics : IEquatable<XRCameraIntrinsics>
Remarks
These intrinsics are based on a pinhole camera model. A pinhole camera is a simple type of lens-less camera, a box with a single pinhole in one side. Rays of light enter the pinhole and land on the opposite wall of the box (the image plane), forming an image. Most cameras use larger apertures with lenses to focus the light, but the pinhole camera provides a simplified mathematical model.
Constructors
Name | Description |
---|---|
XRCameraIntrinsics(Vector2, Vector2, Vector2Int) | Constructs a XRCameraIntrinsics from the given parameters. |
Properties
Name | Description |
---|---|
focalLength | The focal length in pixels. |
principalPoint | The principal point from the top-left corner of the image, expressed in pixels. |
resolution | The width and height of the image in pixels. |
Methods
Name | Description |
---|---|
Equals(object) | Tests for equality. |
Equals(XRCameraIntrinsics) | Tests for equality. |
GetHashCode() | Generates a hash suitable for use with containers like |
ToString() | Generates a string representation of this XRCameraIntrinsics. |
Operators
Name | Description |
---|---|
operator ==(XRCameraIntrinsics, XRCameraIntrinsics) | Tests for equality. Same as Equals(XRCameraIntrinsics). |
operator !=(XRCameraIntrinsics, XRCameraIntrinsics) | Tests for inequality. Same as |