repositories
/
lsystem3d.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Removed glibmm dependency.
[lsystem3d.git]
/
src
/
vector.h
diff --git
a/src/vector.h
b/src/vector.h
index df1e758c23aafe93f53861edd550a4337de9e53a..7d0bf775267c392d3c9d81acc086ddb522baf80a 100644
(file)
--- a/
src/vector.h
+++ b/
src/vector.h
@@
-1,6
+1,6
@@
// Copyright (C) 2006 Erik Dahlberg
//
// Copyright (C) 2006 Erik Dahlberg
//
-// This file is part of LSystem3
d
.
+// This file is part of LSystem3
D
.
//
// LSystem3D is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
//
// 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
@@
/**
/**
- * 3
d
vector
+ * 3
D
vector
*/
class Vector : public Coordinate
{
public:
*/
class Vector : public Coordinate
{
public:
+
/**
* Constructor
* @param x the x-coordinate
/**
* Constructor
* @param x the x-coordinate
@@
-45,6
+46,12
@@
public:
*/
~Vector();
*/
~Vector();
+
+ /**
+ * Normalize vector
+ */
+ void normalize();
+
/**
* Rotate around another vector
* @param angle rotation angle
/**
* Rotate around another vector
* @param angle rotation angle
@@
-52,27
+59,23
@@
public:
*/
void rotate(double angle, Vector vector);
*/
void rotate(double angle, Vector vector);
- /**
- * Normalize vector
- */
- void normalize();
/**
/**
- * Get scalar product of t
he
vectors
+ * Get scalar product of t
wo
vectors
* @param vector arbitrary vector
* @return the scalar product
*/
double getScalarProduct(Vector vector);
/**
* @param vector arbitrary vector
* @return the scalar product
*/
double getScalarProduct(Vector vector);
/**
- * Get cross product of t
he
vectors
+ * Get cross product of t
wo
vectors
* @param vector arbitrary vector
* @return the cross product
*/
Vector getCrossProduct(Vector vector);
/**
* @param vector arbitrary vector
* @return the cross product
*/
Vector getCrossProduct(Vector vector);
/**
- * Get angle between t
he
vectors
+ * Get angle between t
wo
vectors
* @param vector the second (normalized) vector
* @return the angle, in degrees
*/
* @param vector the second (normalized) vector
* @return the angle, in degrees
*/