public CoordTransform GetTransform(ReflectDirection r) { switch (r) { case ReflectDirection.HORIZONTAL: return(REFLECT_HORIZONTAL); case ReflectDirection.VERTICAL: return(REFLECT_VERTICAL); case ReflectDirection.CENTRAL: return(REFLECT_CENTRAL); } return(IDENTITY); }
public Matrix Reflect(ReflectDirection rd, Matrix res = null) { //TODO implement PROPERLY. :P return(Transform(GetTransform(rd), res, true)); }