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 |
---|---|---|
System.Double | angle | The field of view on the scene view in degrees. |
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Windows | 100.13 - 200.6 |
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 |
---|---|---|
System.Double | angle | The field of view on the scene view in degrees. |
System.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 Windows | 100.13 - 200.6 |
SetFieldOfView(Single, Single, Single, Single, Single, Single, 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 |
---|---|---|
System.Single | xFocalLength | The pixel focal length along the x-axis. The units are in pixels. xFocal and yFocal should be identical for square pixels. |
System.Single | yFocalLength | The pixel focal length along the y-axis. The units are in pixels. xFocal and yFocal should be identical for square pixels. |
System.Single | 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. |
System.Single | 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. |
System.Single | xImageSize | The x value of the image size captured by the camera. The units are in pixels. |
System.Single | 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 Windows | 100.13 - 200.6 |