次の方法で共有


CameraFov.ToProjectionMatrix メソッド

定義

この FOV をパースペクティブ投影行列に変換します。

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

パラメーター

nearPlane
Single

nearPlane の z 距離

farPlane
Single

farPlane の z 距離

depthConvention
DepthConvention

この射影行列に使用するローカル z 規則。

projection
Matrix4x4

結果として得られる投影行列。

戻り値

注釈

FOV が現在無効であるか、プレーン パラメーターの 1 つが 0 の場合、関数はエラーを InvalidParam 返します。

適用対象