44 lines
1.3 KiB
C++
44 lines
1.3 KiB
C++
//----------------------------------------------------------------------------
|
|
// EgalTech 2013-2014
|
|
//----------------------------------------------------------------------------
|
|
// File : DistPointCrvBezier.h Data : 02.01.14 Versione : 1.5a1
|
|
// Contenuto : Dichiarazione della classe distanza punto da curva di Bezier.
|
|
//
|
|
//
|
|
//
|
|
// Modifiche : 02.01.14 DS Creazione modulo.
|
|
//
|
|
//
|
|
//----------------------------------------------------------------------------
|
|
|
|
#pragma once
|
|
|
|
#include "/EgtDev/Include/EGkPoint3d.h"
|
|
#include "/EgtDev/Include/EGkCurveBezier.h"
|
|
#include "/EgtDev/Include/EGkDistPointCurve.h"
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
class DistPointCrvBezier
|
|
{
|
|
friend class DistPointCurve ;
|
|
|
|
public :
|
|
DistPointCrvBezier( const Point3d& ptP, const ICurveBezier& CrvBez) ;
|
|
|
|
public :
|
|
bool GetSqDist( double& dSqDist) ;
|
|
bool GetDist( double& dDist) ;
|
|
int GetNbrMinDist( void) { return (int) m_Info.size() ; }
|
|
bool GetMinDistPoint( int nInd, Point3d& ptMinDist, int& nFlag) ;
|
|
bool GetParamAtMinDistPoint( int nInd, double& dParam, int& nFlag) ;
|
|
|
|
private :
|
|
DistPointCrvBezier( void) ;
|
|
|
|
private :
|
|
double m_dDist ;
|
|
MDPCIVECTOR m_Info ;
|
|
} ;
|
|
|