angle.hh (472B)
1 #ifndef _GEOMETRY_ANGLE_HH_ 2 #define _GEOMETRY_ANGLE_HH_ 3 4 #include "all_includes.hh" 5 6 namespace Angle { 7 const double dPi = 3.141592653589793238462643383279; 8 const float Pi = (float)(dPi); 9 float r2d(float rad); 10 float d2r(float deg); 11 } 12 13 class Angle3D { 14 public: 15 Vertex h; 16 Vertex l; 17 Vertex u; 18 Angle3D(); 19 Angle3D(Vertex _h, Vertex _l, Vertex _u); 20 Angle3D rotateH(float angle) const; 21 Angle3D rotateL(float angle) const; 22 Angle3D rotateU(float angle) const; 23 }; 24 25 #endif