Co-ordinates genius required

Hi,

I need some help in programming a section of an application I'm trying to create.

I need to create a triangle (ie 3 sets co-ordinates) of images.

I know that sounds simple - but I also need to be able to create two buttons and make the images rotate left or right (depending on the button pressed)

I assume this will be achieved by turning co-ordinates into some kind of reference (ie 'A1'), then instead of using the co-ordinates mapping the image to the reference?

But I am very stuck!

My next step is to make the triangle out of 3 images randomly selected from a folder of 5 - then randomly map these to the 3 triangle co-ordinates, using some sort of random number generator (rand?).....if anyone could help with that, then that would be truely impressive!!

Thanks in advance for anyone taking up the challenge!

[878 byte] By [LF123] at [2007-9-30 15:03:19]
# 1

Best to understand how to transform coordinates in 2D or 3D space. Have you ever heard of such a thing? Ever study matricies or linear algebra at all? Can you multiply a vector by a matrix to get another vector?That's what you need to know:

http://www.ping.be/~ping1339/coortf.htm

Look at Cartesian coordinates.

%

duffymo at 2007-7-5 21:56:48 > top of Java-index,Archived Forums,Java Programming...
# 2
> http://www.ping.be/~ping1339/coortf.htmThat sure is a fine link. After the OP has read and understood the appropriate parts he might have a lookat AffineTransform in the API docs ...kind regards,Jos
JosAH at 2007-7-5 21:56:48 > top of Java-index,Archived Forums,Java Programming...