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
用于此投影矩阵的 local z 约定。
- projection
- Matrix4x4
生成的投影矩阵。
返回
注解
如果 FOV 当前无效或其中一个平面参数为 0,则该函数将返回错误 InvalidParam 。