Struct CameraIntrinsics
Camera intrinsics describe physical characteristics of a camera.
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
Syntax
public struct CameraIntrinsics : IEquatable<CameraIntrinsics>
Constructors
CameraIntrinsics(Vector2, Vector2, Vector2Int)
Declaration
public CameraIntrinsics(Vector2 focalLength, Vector2 principalPoint, Vector2Int resolution)
Parameters
Type |
Name |
Description |
Vector2 |
focalLength |
The focal length in pixels
|
Vector2 |
principalPoint |
The principla point from the top-left of the image, in pixels
|
Vector2Int |
resolution |
The dimensions of the image
|
Properties
focalLength
The focal length in pixels
Declaration
public Vector2 focalLength { get; }
Property Value
principalPoint
The principal point from the top-left corner of the image, expressed in pixels.
Declaration
public Vector2 principalPoint { get; }
Property Value
resolution
The dimensions of the image in pixels.
Declaration
public Vector2Int resolution { get; }
Property Value
Type |
Description |
Vector2Int |
|
Methods
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.ValueType.Equals(System.Object)
Equals(CameraIntrinsics)
Declaration
public bool Equals(CameraIntrinsics other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.ValueType.GetHashCode()
ToString()
Converts the intrinsics to a string, suitable for debug logging.
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
A human-readable string representation of the intrinsics
|
Overrides
System.ValueType.ToString()
Operators
Equality(CameraIntrinsics, CameraIntrinsics)
Declaration
public static bool operator ==(CameraIntrinsics lhs, CameraIntrinsics rhs)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Inequality(CameraIntrinsics, CameraIntrinsics)
Declaration
public static bool operator !=(CameraIntrinsics lhs, CameraIntrinsics rhs)
Parameters
Returns
Type |
Description |
System.Boolean |
|