Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- double theta = 2 * 3.1415926 / 100;
- double c = Math.cos(theta);
- double s = Math.sin(theta);
- double t;
- double x = ((ArcTo) element).getRadius();//we start at angle = 0
- double y = 0;
- for(int ii = 0; ii < 100; ii++) {
- coordinates.add(new Coordinate(x + element.getCenterPoint().getX(), y + element.getCenterPoint().getY()));//output vertex
- //apply the rotation matrix
- t = x;
- x = c * x - s * y;
- y = s * t + c * y;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement