Commit b240c21f authored by Hans-Christian Ebke's avatar Hans-Christian Ebke
Browse files

Added normalized() to VectorT.

git-svn-id: fdac6126-5c0c-442c-9429-916003d36597
parent 2b25dba5
......@@ -426,6 +426,14 @@ public:
return *this;
/** return normalized vector
inline const vector_type normalized() const
return *this / norm();
/** normalize vector, return normalized vector and avoids div by zero
inline vector_type& normalize_cond()
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment