// 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
+/**
+ * Normalize vector
+ */
+void Vector::normalize()
+{
+ double length = sqrt(_x * _x + _y * _y + _z * _z);
+
+ if (length != 0)
+ {
+ _x /= length;
+ _y /= length;
+ _z /= length;
+ }
+}
+
+
+
/**
* Rotate around another vector
* @param angle rotation angle
-/**
- * Normalize vector
- */
-void Vector::normalize()
-{
- double length = sqrt(_x * _x + _y * _y + _z * _z);
-
- if (length != 0)
- {
- _x /= length;
- _y /= length;
- _z /= length;
- }
-}
-
-
-
/**
* Get scalar product of two vectors
* @param vector arbitrary vector