Matrix.perspective

Construct an optionally non-symmetric perspective matrix

  1. Matrix perspective(valueType fovy, valueType aspect, valueType near, valueType far)
  2. Matrix perspective(valueType left, valueType right, valueType bottom, valueType top, valueType near, valueType far)
    struct Matrix(type, int numCols, int numRows)
    @safe pure nothrow static
    static if(!((cols == 2) && (rows == 2)))
    static if(!((cols == 3) && (rows == 3)))
    static if((cols == 4) && (rows == 4))
    static if(isFloatingPoint!valueType)
    perspective
    if (
    (numCols > 1) &&
    (numRows > 1)
    )

Meta