Matrix4x4CreatePerspectiveFieldOfView Method
Creates a perspective projection matrix based on a field of view, aspect ratio, and near and far view plane distances.
Namespace: Karamba.GeometryAssembly: KarambaCommon (in KarambaCommon.dll) Version: 3.0.8.0+eb23a7103f0eca0b6d808121e15fec6899194e15
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
- fieldOfView Double
- Field of view in the y direction, in radians.
- aspectRatio Double
- Aspect ratio, defined as view space width divided by height.
- nearPlaneDistance Double
- Distance to the near view plane.
- farPlaneDistance Double
- Distance to the far view plane.
Matrix4x4The perspective projection matrix.