diff --git a/src/OpenMesh/Core/Geometry/VectorT_inc.hh b/src/OpenMesh/Core/Geometry/VectorT_inc.hh index 9aa538a9..928ccbf9 100644 --- a/src/OpenMesh/Core/Geometry/VectorT_inc.hh +++ b/src/OpenMesh/Core/Geometry/VectorT_inc.hh @@ -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()