Everybody Rotate!

Last week, we looked at the matrix-multiplication method that Java uses

to translate points from one place to another on coordinate planes

(i.e., the method used to move pixels around in windows). The technique

involves mathematical structures called affine transforms. They look

like this...

1 0 0

0 1 0

0 0 1

...and can be created in Java programs as AffineTransform objects. The

example above is called the identity affine transform, and it moves a

pixel nowhere. That's what you get when you create an AffineTransform

object with no arguments.

Affine transforms can perform rotations, too. To bring about a rotation

in two dimensions

ITWorld DealPost: The best in tech deals and discounts.
Shop Tech Products at Amazon