Minor cleanup.
[lsystem3d.git] / src / vector.h
index df1e758c23aafe93f53861edd550a4337de9e53a..7d0bf775267c392d3c9d81acc086ddb522baf80a 100644 (file)
@@ -1,6 +1,6 @@
 // Copyright (C) 2006 Erik Dahlberg
 // 
-// This file is part of LSystem3d.
+// This file is part of LSystem3D.
 // 
 // LSystem3D is free software; you can redistribute it and/or
 // modify it under the terms of the GNU General Public License
 
 
 /**
- * 3d vector
+ * 3D vector
  */
 class Vector : public Coordinate
 {
 public:
+    
     /**
      * Constructor
      * @param x the x-coordinate
@@ -45,6 +46,12 @@ public:
      */
     ~Vector();
     
+    
+    /**
+     * Normalize vector
+     */
+    void normalize();
+    
     /**
      * Rotate around another vector
      * @param angle rotation angle
@@ -52,27 +59,23 @@ public:
      */
     void rotate(double angle, Vector vector);
     
-    /**
-     * Normalize vector
-     */
-    void normalize();
     
     /**
-     * Get scalar product of the vectors
+     * Get scalar product of two vectors
      * @param vector arbitrary vector
      * @return the scalar product
      */
     double getScalarProduct(Vector vector);
     
     /**
-     * Get cross product of the vectors
+     * Get cross product of two vectors
      * @param vector arbitrary vector
      * @return the cross product
      */
     Vector getCrossProduct(Vector vector);
     
     /**
-     * Get angle between the vectors
+     * Get angle between two vectors
      * @param vector the second (normalized) vector
      * @return the angle, in degrees
      */