Basic HTML version of Foils prepared
13 July 98
Foil 55 Rotation About a Point
From
Java Academy II:Advanced Java NPAC/ECS Java Academy --
February to April 98
.
by
Tom Scavo
1
To rotate a polygon about an arbitrary point p, we must do the following:
translate the origin to point p
rotate each vertex of the polygon
translate back to original coordinates
2
So rotation of polygons boils down to rotations of points about the origin
3
Unfortunately, the Point class is of no help!
in Table To:
©
Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu
If you have any comments about this server, send e-mail to
webmaster@npac.syr.edu
.
Page produced by
wwwfoil
on Sat Nov 28 1998