Exemple #1
0
        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);
        }
Exemple #2
0
 public Matrix Reflect(ReflectDirection rd, Matrix res = null)
 {
     //TODO implement PROPERLY. :P
     return(Transform(GetTransform(rd), res, true));
 }