|
Matrix4x4CreatePerspective Method
|
Creates a perspective projection matrix from the given view volume dimensions.
Namespace:
Karamba.Geometry
Assembly:
KarambaCommon (in KarambaCommon.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public static Matrix4x4 CreatePerspective(
double width,
double height,
double nearPlaneDistance,
double farPlaneDistance
)
Public Shared Function CreatePerspective (
width As Double,
height As Double,
nearPlaneDistance As Double,
farPlaneDistance As Double
) As Matrix4x4
public:
static Matrix4x4 CreatePerspective(
double width,
double height,
double nearPlaneDistance,
double farPlaneDistance
)
static member CreatePerspective :
width : float *
height : float *
nearPlaneDistance : float *
farPlaneDistance : float -> Matrix4x4
Parameters
- width
- Type: SystemDouble
Width of the view volume at the near view plane. - height
- Type: SystemDouble
Height of the view volume at the near view plane. - nearPlaneDistance
- Type: SystemDouble
Distance to the near view plane. - farPlaneDistance
- Type: SystemDouble
Distance to the far view plane.
Return Value
Type:
Matrix4x4The perspective projection matrix.
See Also