Matrix.orthographic

Returns orthographic projection.

struct Matrix(T, ubyte R, ubyte C = R, MatrixOrder O = CurrentMatrixOrder)
static pure nothrow @safe @nogc
static if(O == MatrixOrder.RowMajor)
static if(isSquare && R == 4 && isFloatingPoint!T)
orthographic
(,,,
T top
,,
T far
)
if (
R >= 2 &&
R <= 4
&&
C >= 2
&&
C <= 4
)

Examples

Meta