Added a NormalizedDirection method
This commit is contained in:
parent
5dbe87d368
commit
7537b20933
|
|
@ -115,6 +115,8 @@ public:
|
||||||
{ return ( _p0 + _p1) / ScalarType(2.0) ; }
|
{ return ( _p0 + _p1) / ScalarType(2.0) ; }
|
||||||
inline PointType Direction( ) const
|
inline PointType Direction( ) const
|
||||||
{ return ( _p1 - _p0) ; }
|
{ return ( _p1 - _p0) ; }
|
||||||
|
inline PointType NormalizedDirection( ) const
|
||||||
|
{ return ( _p1 - _p0).Normalize() ; }
|
||||||
/// return the bounding box
|
/// return the bounding box
|
||||||
inline Box3<ScalarType> BBox( ) const
|
inline Box3<ScalarType> BBox( ) const
|
||||||
{ Box3<ScalarType> t;
|
{ Box3<ScalarType> t;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue