EgtGeomKernel 1.5f6 :
- agg. intersezione linee-linee - agg. alle curve metodi per passare da lunghezza a parametro e viceversa - agg. metodi per creare curve composite come poligoni regolari - corr. errore in triangulate con contorni CW - agg. opportune funzioni a TSC.
This commit is contained in:
+14
-9
@@ -44,15 +44,6 @@ Vector3d::FromPolar( double dLen, double dAngDeg)
|
||||
z = 0 ;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
// Quadrato della lunghezza di un vettore
|
||||
//----------------------------------------------------------------------------
|
||||
double
|
||||
Vector3d::SqLen( void) const
|
||||
{
|
||||
return ( x * x + y * y + z * z) ;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
// Lunghezza di un vettore
|
||||
//----------------------------------------------------------------------------
|
||||
@@ -69,6 +60,20 @@ Vector3d::Len( void) const
|
||||
return sqrt( x * x + y * y + z * z) ;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
// Lunghezza di un vettore nel piano XY
|
||||
//----------------------------------------------------------------------------
|
||||
double
|
||||
Vector3d::LenXY( void) const
|
||||
{
|
||||
if ( fabs( y) < EPS_ZERO)
|
||||
return fabs( x) ;
|
||||
if ( fabs( x) < EPS_ZERO)
|
||||
return fabs( y) ;
|
||||
|
||||
return sqrt( x * x + y * y) ;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
// Ritorna la rappresentazione in coordinate sferiche
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user