mirror of https://github.com/CGAL/cgal
Merge pull request #3130 from afabri/CGAL-M_PI-GF
Replace M_PI with CGAL_PI
This commit is contained in:
commit
b814620557
|
|
@ -680,9 +680,9 @@ void Polyhedron_demo_affine_transform_plugin::applySingleTransformation()
|
|||
ui.lineEditZ->text().toDouble());
|
||||
|
||||
if(!is_point_set)
|
||||
transform_item->manipulatedFrame()->rotate(CGAL::qglviewer::Quaternion(axis, ui.lineEditA->text().toDouble()*M_PI/180.0));
|
||||
transform_item->manipulatedFrame()->rotate(CGAL::qglviewer::Quaternion(axis, ui.lineEditA->text().toDouble()*CGAL_PI/180.0));
|
||||
else
|
||||
transform_points_item->manipulatedFrame()->rotate(CGAL::qglviewer::Quaternion(axis, ui.lineEditA->text().toDouble()*M_PI/180.0));
|
||||
transform_points_item->manipulatedFrame()->rotate(CGAL::qglviewer::Quaternion(axis, ui.lineEditA->text().toDouble()*CGAL_PI/180.0));
|
||||
break;
|
||||
}
|
||||
//translation
|
||||
|
|
|
|||
Loading…
Reference in New Issue