Fix flawed BoundingSphere inequality operator

This commit is contained in:
Denys Koch 2017-08-28 14:34:39 +02:00 committed by GitHub
parent 26d0d3f424
commit 1d1bfa1b39

View File

@ -64,7 +64,7 @@ class BoundingSphereImpl
inline bool valid() const { return _radius>=0.0; } inline bool valid() const { return _radius>=0.0; }
inline bool operator == (const BoundingSphereImpl& rhs) const { return _center==rhs._center && _radius==rhs._radius; } inline bool operator == (const BoundingSphereImpl& rhs) const { return _center==rhs._center && _radius==rhs._radius; }
inline bool operator != (const BoundingSphereImpl& rhs) const { return _center!=rhs._center || _radius==rhs._radius; } inline bool operator != (const BoundingSphereImpl& rhs) const { return _center!=rhs._center || _radius!=rhs._radius; }
/** Set the bounding sphere to the given center/radius using floats. */ /** Set the bounding sphere to the given center/radius using floats. */
inline void set(const vec_type& center,value_type radius) inline void set(const vec_type& center,value_type radius)