Results 1 to 3 of 3
Thread: Pivoting lines animation help.
- 01-13-2013, 06:17 AM #1
Member
- Join Date
- Jan 2013
- Location
- NC
- Posts
- 2
- Rep Power
- 0
Pivoting lines animation help.
I've got a buddy in the art business who wants me to write up a simple program for him. What he needs is a program that will draw two lines which intersect, and then he wants to be able to pivot the lines at the intersection.
My first thought would be to just do the math, calculate the point of intersection, allow the user to select how many degrees he wishes to rotate one line and just mathematically figure out how to update the image.
But before I go ahead and do all of that work, I was wondering if there happened to be a method that does something similar in the Java API. I can do the GUI, display the lines, and find the pivot point, I just need a pivot method. I'm thinking I'll just have to write my own method, but maybe somebody knows something that will help.
- 01-13-2013, 11:28 AM #2
Re: Pivoting lines animation help.
AffineTransform#createTransformedShape(...) may be useful. Or not, depending on various other details.
dbIf you're forever cleaning cobwebs, it's time to get rid of the spiders.
- 01-13-2013, 07:52 PM #3
Member
- Join Date
- Jan 2013
- Location
- NC
- Posts
- 2
- Rep Power
- 0
Similar Threads
-
I need to truncate a file with 10 or more lines, to 10, removing the first lines
By sledjama in forum New To JavaReplies: 3Last Post: 10-25-2011, 07:29 PM -
Animation with Animated GIF
By JavaBean in forum Java 2DReplies: 3Last Post: 06-04-2011, 05:26 PM -
Animation
By ryainad in forum Advanced JavaReplies: 1Last Post: 04-04-2011, 06:52 PM -
need help about animation ?
By h9h in forum Java 2DReplies: 1Last Post: 10-30-2009, 12:41 PM -
GUI Animation
By serfster in forum New To JavaReplies: 2Last Post: 06-11-2008, 04:37 AM
Bookmarks