Matrix.rotation

Constructs 2d rotation matrix

  1. MatType rotation(T angle)
    struct Matrix(T, size_t H, size_t W)
    static
    static if(!(isSquare && W == 2 && isFloatingPoint!T))
    static if(isSquare && W == 3 && isFloatingPoint!T)
    rotation
    ()
    if (
    isNumeric!T &&
    W > 0
    &&
    H > 0
    )
  2. MatType rotation(T[3] axis, T angle)

Meta