Share via


CameraFov.ToProjectionMatrix Method

Definition

Converts this FOV to a perspective projection matrix.

public:
 Microsoft::Azure::RemoteRendering::Result ToProjectionMatrix(float nearPlane, float farPlane, Microsoft::Azure::RemoteRendering::DepthConvention depthConvention, [Runtime::InteropServices::Out] Microsoft::Azure::RemoteRendering::Matrix4x4 % projection);
public Microsoft.Azure.RemoteRendering.Result ToProjectionMatrix (float nearPlane, float farPlane, Microsoft.Azure.RemoteRendering.DepthConvention depthConvention, out Microsoft.Azure.RemoteRendering.Matrix4x4 projection);
member this.ToProjectionMatrix : single * single * Microsoft.Azure.RemoteRendering.DepthConvention * Matrix4x4 -> Microsoft.Azure.RemoteRendering.Result
Public Function ToProjectionMatrix (nearPlane As Single, farPlane As Single, depthConvention As DepthConvention, ByRef projection As Matrix4x4) As Result

Parameters

nearPlane
Single

The z-distance of the nearPlane

farPlane
Single

The z-distance of the farPlane

depthConvention
DepthConvention

The local z convention to use for this projection matrix.

projection
Matrix4x4

The resulting projection matrix.

Returns

Remarks

If the FOV is currently invalid or one of the plane parameters is 0, the function will return a InvalidParam error.

Applies to