![]() |
Public API Reference |
![]() |
Helpers to create standard projections. More...
#include <csgeom/projections.h>
Static Public Member Functions | |
static Matrix4 | CSPerspective (float viewWidth, float viewHeight, float shiftX, float shiftY, float invAspect, float nearClip=0.1f) |
Create a perspective projection as used by CS. | |
static Matrix4 | Frustum (float left, float right, float bottom, float top, float nearz, float farz) |
static Matrix4 | Ortho (float left, float right, float bottom, float top, float nearz, float farz) |
Create an orthographic projection. |
Helpers to create standard projections.
Definition at line 38 of file projections.h.
static Matrix4 CS::Math::Projections::CSPerspective | ( | float | viewWidth, |
float | viewHeight, | ||
float | shiftX, | ||
float | shiftY, | ||
float | invAspect, | ||
float | nearClip = 0.1f |
||
) | [inline, static] |
Create a perspective projection as used by CS.
Definition at line 58 of file projections.h.
static Matrix4 CS::Math::Projections::Frustum | ( | float | left, |
float | right, | ||
float | bottom, | ||
float | top, | ||
float | nearz, | ||
float | farz | ||
) | [inline, static] |
Definition at line 85 of file projections.h.
static Matrix4 CS::Math::Projections::Ortho | ( | float | left, |
float | right, | ||
float | bottom, | ||
float | top, | ||
float | nearz, | ||
float | farz | ||
) | [inline, static] |
Create an orthographic projection.
left is mapped to x=-1, right to x=1, bottom to y=-1 and top to y=1. nearz specifies the near clipping distance, farz the far clipping distance.
Definition at line 46 of file projections.h.