     {
         x = -x;
         y = -y;
-        
-        return this;
-    }
-
-    /** 
-     * Returns a copy of the vector, inverted. 
+
+        return this;
+    }
+
+    /**
+     * Returns a copy of the vector, inverted.
      */
     public function invert () :Vector2
     {
        return this.clone().invertLocal();
     }
-    
-    /** 
+
+    /**
      * Returns true if this vector is equal to v.
      */
     public function equals (v :Vector2) :Boolean
     {
         return (x == v.x && y == v.y);
     }
-    
-    /** 
-     * Returns true if the components of v are equal to the components of this Vector2, 
-     * within the given epsilon. 
+
+    /**
+     * Returns true if the components of v are equal to the components of this Vector2,
+     * within the given epsilon.
      */
     public function similar (v :Vector2, epsilon :Number) :Boolean
     {

        return this.clone().addLocal(v);
    }

    /** 
     * Subtracts another vector from this one, in place.
     * Returns a reference to 'this', for chaining.
     */


        x *= lengthInverse;
        y *= lengthInverse;

        return this;
    }

    /**
     * Returns a normalized copy of the vector.
     */
    public function normalize () :Vector2
    {
        return this.clone().normalizeLocal();
    }

    /**
     * Adds another Vector2 to this, in place.
     * Returns a reference to 'this', for chaining.
     */
