Results 1 to 2 of 2

Thread: Transformation

  1. #1
    rosh72851 is offline Member
    Join Date
    Sep 2008
    Posts
    58
    Rep Power
    0

    Exclamation 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

  2. #2
    xcallmejudasx's Avatar
    xcallmejudasx is offline Senior Member
    Join Date
    Oct 2008
    Location
    Houston, TX & Flint, MI
    Posts
    609
    Rep Power
    7

    Default

    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

  1. OpenGl transformation question newbie
    By ankitmcgill in forum New To Java
    Replies: 1
    Last Post: 11-16-2008, 04:46 AM
  2. Replies: 0
    Last Post: 10-31-2008, 03:13 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •