Perspective Field OfView(Single, Single, Single, Single) Method
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.
Creates a perspective projection matrix based on a field of view, aspect ratio, and near and far view plane distances.
public: static System::Numerics::Matrix4x4 CreatePerspectiveFieldOfView(float fieldOfView, float aspectRatio, float nearPlaneDistance, float farPlaneDistance);
public static System.Numerics.Matrix4x4 CreatePerspectiveFieldOfView (float fieldOfView, float aspectRatio, float nearPlaneDistance, float farPlaneDistance);
static member CreatePerspectiveFieldOfView : single * single * single * single -> System.Numerics.Matrix4x4
Public Shared Function CreatePerspectiveFieldOfView (fieldOfView As Single, aspectRatio As Single, nearPlaneDistance As Single, farPlaneDistance As Single) As Matrix4x4
The field of view in the y direction, in radians.
The aspect ratio, defined as view space width divided by height.
The distance to the near view plane.
The distance to the far view plane.
The perspective projection matrix.
fieldOfView is less than or equal to zero.
fieldOfView is greater than or equal to PI.
nearPlaneDistance is less than or equal to zero.
farPlaneDistance is less than or equal to zero.
nearPlaneDistance is greater than or equal to