How to rotate a polygon around a point with Java?
问题 I'm creating a Canvas object ( lines, vertices, triangle, ...) and I would like to apply to them a rotation around a point. I can't use the rotate() method of Canvas because points are attached to GeoPoint on a Map, so if I use the rotate() method the all map is rotating ... The problem is that Canvas needs Point(int,int) and applying a rotation creates double because of cos and sin functions. So when I apply the rotation to the all points, because of casting double to int, I have some