CameraFov.ToProjectionMatrix 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將此 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 目前無效,或其中一個平面參數為 0,函式會傳回 InvalidParam 錯誤。