Matrix.perspective

Returns a perspective matrix (4x4 and floating-point matrices only).

  1. Matrix perspective(mt width, mt height, mt fov, mt near, mt far)
    struct Matrix(type, int rows_, int cols_)
    @safe pure nothrow static
    static if(!((rows == 2) && (cols == 2)))
    static if(!((rows == 3) && (cols == 3)))
    static if((rows == 4) && (cols == 4))
    static if(isFloatingPoint!mt)
    perspective
    if (
    (rows_ > 0) &&
    (cols_ > 0)
    )
  2. Matrix perspective(mt left, mt right, mt bottom, mt top, mt near, mt far)

Meta