|
Matrix4x4CreatePerspectiveFieldOfView Method
|
Creates a perspective projection matrix based on a field of view, aspect ratio, and near and far view plane distances.
Namespace:
Karamba.Geometry
Assembly:
KarambaCommon (in KarambaCommon.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public static Matrix4x4 CreatePerspectiveFieldOfView(
double fieldOfView,
double aspectRatio,
double nearPlaneDistance,
double farPlaneDistance
)
Public Shared Function CreatePerspectiveFieldOfView (
fieldOfView As Double,
aspectRatio As Double,
nearPlaneDistance As Double,
farPlaneDistance As Double
) As Matrix4x4
public:
static Matrix4x4 CreatePerspectiveFieldOfView(
double fieldOfView,
double aspectRatio,
double nearPlaneDistance,
double farPlaneDistance
)
static member CreatePerspectiveFieldOfView :
fieldOfView : float *
aspectRatio : float *
nearPlaneDistance : float *
farPlaneDistance : float -> Matrix4x4
Parameters
- fieldOfView
- Type: SystemDouble
Field of view in the y direction, in radians. - aspectRatio
- Type: SystemDouble
Aspect ratio, defined as view space width divided by height. - 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