-void wxPoint2DDouble::SetVectorAngle( wxDouble degrees ) {
- wxDouble length = this->GetVectorLength() ;
- m_x = length * cos( degrees / 180 * 3.14159265359 ) ;
- m_y = length * sin( degrees / 180 * 3.14159265359 ) ;
+void wxPoint2DDouble::SetVectorAngle( wxDouble degrees )
+{
+ wxDouble length = GetVectorLength();
+ m_x = length * cos( degrees / 180 * M_PI );
+ m_y = length * sin( degrees / 180 * M_PI );