X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fvector.h;h=7d0bf775267c392d3c9d81acc086ddb522baf80a;hb=HEAD;hp=438b3258f485ebe1936eb248d863e00273b31a2f;hpb=526db67540bf69a4c09ed0d0f4d62bad0a37ee70;p=lsystem3d.git diff --git a/src/vector.h b/src/vector.h index 438b325..7d0bf77 100644 --- a/src/vector.h +++ b/src/vector.h @@ -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 @@ -27,11 +27,12 @@ /** - * 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,10 +59,6 @@ public: */ void rotate(double angle, Vector vector); - /** - * Normalize vector - */ - void normalize(); /** * Get scalar product of two vectors