Subject: CGAL users discussion list
List archive
- From: sara123 <>
- To:
- Subject: [cgal-discuss] error with rotation
- Date: Tue, 15 Feb 2011 10:17:24 -0800 (PST)
consider we have a polygon and we want to rotate it under the angle of one of
it's vertices (for example v0), i used this functions in my program:
CGAL::Rotation RTN;
typedef CGAL::Aff_transformation_2<K> tr;
tr ration_rot (RTN, sin(-ang), cos(-ang),
sin(-ang)*sin(-ang)+cos(-ang)*cos(-ang))
(ang: angle of v0 with x-axis)
(K is double)
i receive wrong result in some examples (some polygons).
http://cgal-discuss.949826.n4.nabble.com/file/n3307307/00000000000000.bmp
--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/error-with-rotation-tp3307307p3307307.html
Sent from the cgal-discuss mailing list archive at Nabble.com.
- [cgal-discuss] error with rotation, sara123, 02/15/2011
Archive powered by MHonArc 2.6.16.