Method SetFieldOfView
SetFieldOfView(double)
Sets the horizontal field of view of the scene view in degrees.
Declaration
public void SetFieldOfView(double angle)
Parameters
| Type | Name | Description |
|---|---|---|
| double | angle | The field of view on the scene view in degrees. |
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET iOS | 200.0 - 300.0 |
| Xamarin.iOS | 100.6 - 100.15 |
SetFieldOfView(double, double)
Sets the field of view on the scene view in degrees and determines how much the vertical field of view is distorted.
Declaration
public void SetFieldOfView(double angle, double distortionRatio)
Parameters
| Type | Name | Description |
|---|---|---|
| double | angle | The field of view on the scene view in degrees. |
| double | distortionRatio | The field of view vertical distortion ratio. |
Remarks
A distortion factor of 1.0 is default. A distortion factor less than 1.0 will cause the visuals to be stretched taller in comparison to their width. A distortion factor greater than 1.0 will cause the visuals to be shrunk shorter in comparison to their width.
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET iOS | 200.0 - 300.0 |
| Xamarin.iOS | 100.6 - 100.15 |
SetFieldOfView(float, float, float, float, float, float, DeviceOrientation)
Matches the field of view of the scene view to the field of view of a camera lens using the lens intrinsics characteristics.
Declaration
public void SetFieldOfView(float xFocalLength, float yFocalLength, float xPrincipal, float yPrincipal, float xImageSize, float yImageSize, DeviceOrientation deviceOrientation)
Parameters
| Type | Name | Description |
|---|---|---|
| float | xFocalLength | The pixel focal length along the x-axis. The units are in pixels. xFocal and yFocal should be identical for square pixels. |
| float | yFocalLength | The pixel focal length along the y-axis. The units are in pixels. xFocal and yFocal should be identical for square pixels. |
| float | xPrincipal | The distance along the x-axis between the principal point and the top-left corner of the image frame. The units are in pixels. |
| float | yPrincipal | The distance along the y-axis between the principal point and the top-left corner of the image frame. The units are in pixels. |
| float | xImageSize | The x value of the image size captured by the camera. The units are in pixels. |
| float | yImageSize | The y value of the image size captured by the camera. The units are in pixels. |
| DeviceOrientation | deviceOrientation | Describes the orientation of the device. |
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET iOS | 200.0 - 300.0 |
| Xamarin.iOS | 100.6 - 100.15 |