Dela via


CameraFov.ToProjectionMatrix Metod

Definition

Konverterar denna FOV till en perspektivprojektionsmatris.

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

Parametrar

nearPlane
Single

Z-avståndet för nearPlane

farPlane
Single

Z-avståndet för farPlane

depthConvention
DepthConvention

Den lokala z-konventionen som ska användas för den här projektionsmatrisen.

projection
Matrix4x4

Den resulterande projektionsmatrisen.

Returer

Kommentarer

Om FOV för närvarande är ogiltigt eller om en av planparametrarna är 0 returnerar funktionen ett InvalidParam fel.

Gäller för