-
Transformation
How can I translate, rotate and scale shapes like circles, rectangles, and lines
using matrices.
I know what it is theoretically. But in java how will I perform it. Dont need the code; just a jump start.
I know how to do these with points in matrices. But not with builtin functions such as drawEllipse, DrawRect and Drawline.
Please suggest
-
I think your going to just have to take the verticie's and just calculate the transformation yourself and then redraw it. Is this application supposed to be like a game with rotating views? If so it would probably be alot easier on your system if you had the images already defined for certain key angles and just had a method call that image instead of calculating and redrawing it each time.