EgtGeomKernel 1.5a4 : Implementazione BoundingBox.

This commit is contained in:
Dario Sassi
2014-01-16 22:02:41 +00:00
parent 2e00faa02b
commit 7479cb4162
34 changed files with 982 additions and 233 deletions
+15 -7
View File
@@ -13,15 +13,8 @@
//--------------------------- Include ----------------------------------------
#include "stdafx.h"
#include "\EgtDev\Include\EGkGeoConst.h"
#include "\EgtDev\Include\EGkFrame3d.h"
//----------------------------------------------------------------------------
Frame3d::Frame3d( void)
: m_nType( TOP), m_nZType( TOP), m_ptOrig( ORIG), m_vtVersX( X_AX), m_vtVersY( Y_AX), m_vtVersZ( Z_AX)
{
}
//----------------------------------------------------------------------------
bool
Frame3d::Set( const Point3d& ptOrig, const Vector3d& vtDirX,
@@ -203,6 +196,21 @@ Frame3d::Rotate( const Point3d& ptAx, const Vector3d& vtAx, double dCosAng, doub
return true ;
}
//----------------------------------------------------------------------------
bool
Frame3d::Invert( void)
{
Frame3d frInv = GLOB_FRM ;
if ( frInv.ToLoc( *this)) {
*this = frInv ;
return true ;
}
else
return false ;
}
//----------------------------------------------------------------------------
bool
Frame3d::ToGlob( const Frame3d& frRef)