EgtGeomKernel :
- migliorati controlli in alcune funzioni di vector3d.
This commit is contained in:
@@ -397,6 +397,12 @@ Vector3d::LocToLoc( const Frame3d& frOri, const Frame3d& frDest)
|
||||
bool
|
||||
Vector3d::GetAngle( const Vector3d& vtEnd, double& dAngDeg) const
|
||||
{
|
||||
// verifico vettori
|
||||
if ( IsZero() || vtEnd.IsZero()) {
|
||||
dAngDeg = 0 ;
|
||||
return false ;
|
||||
}
|
||||
|
||||
// quantità ugualmente proporzionali a coseno e seno
|
||||
double dProSca = *this * vtEnd ;
|
||||
double dProVett = ( *this ^ vtEnd).Len() ;
|
||||
@@ -418,6 +424,12 @@ Vector3d::GetAngle( const Vector3d& vtEnd, double& dAngDeg) const
|
||||
bool
|
||||
Vector3d::GetAngleXY( const Vector3d& vtEnd, double& dAngDeg) const
|
||||
{
|
||||
// verifico vettori
|
||||
if ( IsZeroXY() || vtEnd.IsZeroXY()) {
|
||||
dAngDeg = 0 ;
|
||||
return false ;
|
||||
}
|
||||
|
||||
// quantità ugualmente proporzionali a coseno e seno
|
||||
double dProSca = ScalarXY( *this, vtEnd) ;
|
||||
double dProVett = CrossXY( *this, vtEnd) ;
|
||||
|
||||
Reference in New Issue
Block a user