CameraFov Struct
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A generic, possibly off-center definition of a camera's field of view.
public value class CameraFov
public struct CameraFov
type CameraFov = struct
Public Structure CameraFov
- Inheritance
-
CameraFov
Remarks
Angles to the right and to the top from the center are positive, while angles to the left and to the bottom are negative. To define a symmetric field of view, set AngleLeft = -AngleRight and AngleDown = -AngleUp. All angle values are defined in radians and have to be in range (-PI/2; PI/2), with AngleLeft less than AngleRight and AngleDown less than AngleUp or the field of view will be regarded as invalid. Respective functions will yield a InvalidParam error if the field of view is invalid.
Fields
AngleDown |
/ Maximum view angle in radians to the bottom of the camera view (typically negative) |
AngleLeft |
Maximum view angle in radians to the left of the camera view (typically negative) |
AngleRight |
Maximum view angle in radians to the right of the camera view |
AngleUp |
Maximum view angle in radians to the top of the camera view |
Methods
FromProjectionMatrix(Matrix4x4) |
Converts the part of the given projection matrix which governs the field of view to the generic field of view representation used here. |
ToProjectionMatrix(Single, Single, DepthConvention, Matrix4x4) |
Converts this FOV to a perspective projection matrix. |