From 4ede19d2ee44d9710c5da24b8efe1d7f79cc56de Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Thu, 27 Jun 2024 12:53:17 +0200 Subject: [PATCH] Include : - a Vector3d aggiunta funzione inline GetRotate. --- EGkVector3d.h | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 //----------------------------------------------------------------------------