2015-03-16
09:49 AM
- last edited on
2023-08-01
01:33 PM
by
Doreena Deng
2015-03-18 10:30 AM
#include "Point3DData.h" // you need Geometry modul
void RotatePoint (const Vector3D& origo, const Vector3D& axis, double angleDEG, double* x, double* y, double* z)
{
Geometry::TMRotatePoint (origo.x, origo.y, origo.z,
axis.x, axis.y, axis.z,
angleDEG * DEGRAD,
x, y, z);
}
// Usage:
RotatePoint (Vector3D (0.0, 0.0, 0.0), Vector3D (0.0, 0.0, 1.0), 45.0, &x, &y, &z); 2015-03-18 02:31 PM