Results 1 to 2 of 2
Thread: Transformation
- 11-19-2008, 12:45 AM #1
Member
- Join Date
- Sep 2008
- Posts
- 58
- Rep Power
- 0
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
- 11-19-2008, 04:11 PM #2
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.
Similar Threads
-
OpenGl transformation question newbie
By ankitmcgill in forum New To JavaReplies: 1Last Post: 11-16-2008, 03:46 AM -
Data Pipeline 2 - Data Transformation Toolkit for Java Released
By dele in forum Java SoftwareReplies: 0Last Post: 10-31-2008, 02:13 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks