Point3::normalized() is const and does not modify components
This commit is contained in:
parent
be6b1dc641
commit
179b9360c5
|
@ -379,7 +379,12 @@ public:
|
|||
}
|
||||
|
||||
// for compatibility with eigen port
|
||||
inline Point3 & normalized() { return Normalize(); }
|
||||
inline Point3 normalized() const
|
||||
{
|
||||
Point3<P3ScalarType> p = *this;
|
||||
p.Normalize();
|
||||
return p;
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert to polar coordinates from cartesian coordinates.
|
||||
|
|
Loading…
Reference in New Issue