anchor.diff:  
     /**
      * Sets the main direction vector.
  -   * 
  +   *
      * Direction can be: up/forward, down/backward, left, right, upleft, upright, downleft, downright
      */
     void setMainDirection(String direction) {
  
positive.code:    */
    void rotateDirectionsRadians(num radians) {
      mainDirection = mainDirection.rotate(radians);
      
      upDirection = upDirection.rotate(radians);
      downDirection = downDirection.rotate(radians);
      leftDirection = leftDirection.rotate(radians);
      rightDirection = rightDirection.rotate(radians);
      
      upLeftDirection = upLeftDirection.rotate(radians);
      upRightDirection = upRightDirection.rotate(radians);
      downLeftDirection = downLeftDirection.rotate(radians);
  
negative.code:   }
  
    /**
     * Sets the main direction based on two coordinates.
     */
    void setMainDirectionFromTo(int fromX, int fromY, int toX, int toY){
      mainDirection = new StageXL.Vector(toX - fromX, toY - fromY).scaleLength(_MAX_LENGTH_FOR_MAIN_DIRECTION);
    }
  
    /**
     * Set the main direction to zero vector.
     */
    void nullMainDirection() {
  