public Vector ConvertDirectionToVector(Iranyok direction) { Vector toReturn = new Vector(); toReturn.X += direction.getXm(); toReturn.Y += direction.getYm(); return(toReturn); }
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); }
protected bool SetFinalDirection(Iranyok directionToSet) { if (directionToSet == null) { return(false); } this.finalDirection = directionToSet; return(true); }