Class IUsesCameraIntrinsicsMethods
Namespace: Unity.MARS
Syntax
public static class IUsesCameraIntrinsicsMethods
Methods
GetFieldOfView(IUsesCameraIntrinsics)
Get the field of view of the physical camera
Declaration
public static float? GetFieldOfView(this IUsesCameraIntrinsics obj)
Parameters
Type | Name | Description |
---|---|---|
IUsesCameraIntrinsics | obj |
Returns
Type | Description |
---|---|
Nullable<Single> | The camera field of view |
GetFocalLength(IUsesCameraIntrinsics)
Get the focal length of the camera, in pixels
Declaration
public static float GetFocalLength(this IUsesCameraIntrinsics obj)
Parameters
Type | Name | Description |
---|---|---|
IUsesCameraIntrinsics | obj |
Returns
Type | Description |
---|---|
Single | The focal length of the camera, in pixels |
SubscribeFieldOfViewUpdated(IUsesCameraIntrinsics, Action<Single>)
Subscribe to the FieldOfViewUpdated event, which is called when the camera field of view has changed
Declaration
public static void SubscribeFieldOfViewUpdated(this IUsesCameraIntrinsics obj, Action<float> fieldOfViewUpdated)
Parameters
Type | Name | Description |
---|---|---|
IUsesCameraIntrinsics | obj | |
Action<Single> | fieldOfViewUpdated | The delegate to subscribe |
UnsubscribeFieldOfViewUpdated(IUsesCameraIntrinsics, Action<Single>)
Unsubscribe from the FieldOfViewUpdated event, which is called when the camera field of view has changed
Declaration
public static void UnsubscribeFieldOfViewUpdated(this IUsesCameraIntrinsics obj, Action<float> fieldOfViewUpdated)
Parameters
Type | Name | Description |
---|---|---|
IUsesCameraIntrinsics | obj | |
Action<Single> | fieldOfViewUpdated | The delegate to unsubscribe |