Matrix.rotation

Returns an identity matrix with an applied 2D rotation.

  1. Matrix rotation(real angle)
    struct Matrix(type, int numCols, int numRows)
    @safe pure nothrow static
    static if((cols == 2) && (rows == 2))
    rotation
    (
    real angle
    )
    if (
    (numCols > 1) &&
    (numRows > 1)
    )
  2. Matrix rotation(real angle, Vector!(valueType, 3) axis)
  3. Matrix rotation(real angle, valueType x, valueType y, valueType z)
  4. Matrix!(valueType, 3, 3) rotation()

Meta