예제 #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);
        }
예제 #3
0
        protected bool SetFinalDirection(Iranyok directionToSet)
        {
            if (directionToSet == null)
            {
                return(false);
            }

            this.finalDirection = directionToSet;
            return(true);
        }