Added normalized() to VectorT.
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@557 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
@@ -426,6 +426,14 @@ public:
|
|||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** return normalized vector
|
||||||
|
*/
|
||||||
|
|
||||||
|
inline const vector_type normalized() const
|
||||||
|
{
|
||||||
|
return *this / norm();
|
||||||
|
}
|
||||||
|
|
||||||
/** normalize vector, return normalized vector and avoids div by zero
|
/** normalize vector, return normalized vector and avoids div by zero
|
||||||
*/
|
*/
|
||||||
inline vector_type& normalize_cond()
|
inline vector_type& normalize_cond()
|
||||||
|
|||||||
Reference in New Issue
Block a user