Posts: 3,368
Threads: 195
Joined: Jan 2003
well this is for my game. I don't know, what I am messing up, maybe my formula is correct, but I just don't know.
I need a nice formula to convert (x1, y1) to (x2, y2) given x1, y1 and a. It would be even better if the reverse formula was given.
Here is a picture:
http://www.geocities.com/pisforpi/argh.bmp
And thank you!
Peace cannot be obtained without war. Why? If there is already peace, it is unnecessary for war. If there is no peace, there is already war."
Visit www.neobasic.net to see rubbish in all its finest.
Posts: 1,241
Threads: 107
Joined: Feb 2003
link doesn't work
the mind is a beautiful thing, use it and make the world a more beautiful place.
Posts: 3,368
Threads: 195
Joined: Jan 2003
you need to go to the root first. (/pisforpi)
geez, don't you ever read glenn's sig? :-?
Peace cannot be obtained without war. Why? If there is already peace, it is unnecessary for war. If there is no peace, there is already war."
Visit www.neobasic.net to see rubbish in all its finest.
Posts: 1,241
Threads: 107
Joined: Feb 2003
uhh, sry bout the last comment. i should have tried the root first, but i was in a hurry doing something. i'll try it now.
EDIT:
ok, seen it now. still have no idea how that would work.
the mind is a beautiful thing, use it and make the world a more beautiful place.
Posts: 3,368
Threads: 195
Joined: Jan 2003
x2 and y2 are reversed, oops. but it doesn't make a difference.. i'll just swap 'em.
Peace cannot be obtained without war. Why? If there is already peace, it is unnecessary for war. If there is no peace, there is already war."
Visit www.neobasic.net to see rubbish in all its finest.
Posts: 358
Threads: 15
Joined: May 2003
line segments. does x2 bisect the...uh...line with no label that it intersects thats not at the center of the figure? if so, I think this can be solved...however...the problem is not quite clear.
Posts: 3,368
Threads: 195
Joined: Jan 2003
x1 and y1 are the blue lines and they are perpendicular and parallel to the screen, and so are the yellow lines.
And points? You don't need points, just lines.
The black horizontal and vertical lines are 2a and a.
EDIT: Solved it. :normal:
Peace cannot be obtained without war. Why? If there is already peace, it is unnecessary for war. If there is no peace, there is already war."
Visit www.neobasic.net to see rubbish in all its finest.