Commit 25bbbe26 authored by Frédéric Larue's avatar Frédéric Larue

Utility function added to Box3f.

parent ee44ce37
......@@ -395,6 +395,11 @@ public:
* \param[in] v Pointer to the coordinates of the 3D point to bound.
*/
inline void Add( const QVector3D* v );
/** Box boundaries extension so as to bound the specified 3D point.
*
* \param[in] v Pointer to the coordinates of the 3D point to bound.
*/
inline void Add( const float* v );
/** Box boundaries extension so as to bound the specified box.
*
* \param[in] b Bounding box to bound.
......@@ -547,6 +552,12 @@ inline void Box3f::Add( const QVector3D* v )
}
inline void Box3f::Add( const float* v )
{
Add( QVector3D(v[0], v[1], v[2]) );
}
inline void Box3f::Add( const Box3f& b )
{
if( b.m_Min.x() < m_Min.x() )
......
Markdown is supported
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