Пример #1
0
        public Vector ConvertDirectionToVector(Iranyok direction)
        {
            Vector toReturn = new Vector();

            toReturn.X += direction.getXm();
            toReturn.Y += direction.getYm();

            return(toReturn);
        }
Пример #2
0
        public Vector GetDirectionInverse(Iranyok direction, bool flipSides = false)
        {
            int flipper = (flipSides ? -1 : 1);

            Vector directionInverse = new Vector(
                direction.getYm() * flipper,
                direction.getXm() * flipper);

            return(directionInverse);
        }