diff --git a/EGkVector3d.h b/EGkVector3d.h index 78157eb..5a350c0 100644 --- a/EGkVector3d.h +++ b/EGkVector3d.h @@ -441,6 +441,17 @@ AreOrthoExact( const Vector3d& vtV1, const Vector3d& vtV2) return ( abs( vtV1 * vtV2) < COS_ORTO_ANG_ZERO) ; } +//---------------------------------------------------------------------------- +//! Restituisce una copia ruotata del vettore passato +//---------------------------------------------------------------------------- +inline const Vector3d +GetRotate( const Vector3d& vtV, const Vector3d& vtAx, double dAngDeg) +{ + Vector3d vtW = vtV ; + vtW.Rotate( vtAx, dAngDeg) ; + return vtW ; +} + //---------------------------------------------------------------------------- //! Restituisce una copia in locale del vettore passato //----------------------------------------------------------------------------