|
|
|
 |

February 19th, 2004, 08:53 AM
|
Private
|
|
Join Date: Jun 2003
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: OT - math question.
Quote:
Originally posted by Imperator Fyron:
Umm... if you are moving it in a random direction, should you not be able to see where it is moving to?
Either way, measure the vector between the start point and the end point. You can get the angles from this vector with pythagorian theorm used a few times. If you have coordinates, no measurement is required, just calculations.
|
i think he is looking for y position - he has starting point, path traveled (along surface of sphere), distance traveled, wants ending point
__________________
<img src=http://www.danasoft.com/sig/ alt= - /]
|

February 19th, 2004, 09:00 AM
|
 |
Shrapnel Fanatic
|
|
Join Date: Jul 2001
Location: Southern CA, USA
Posts: 18,394
Thanks: 0
Thanked 12 Times in 10 Posts
|
|
Re: OT - math question.
y position is not height. Not sure what I was thinking with arc length, but you definitely need the angles associated with the vector from the starting point to the ending point. The relative height is just the z component of that vector.
Treating the movement as along a circle only works if the only component that is changing is the z component. If x or y change (but not both), then it is no longer a circle, but an ellipse.
|

February 19th, 2004, 09:01 AM
|
 |
Shrapnel Fanatic
|
|
Join Date: Mar 2003
Location: CHEESE!
Posts: 10,009
Thanks: 0
Thanked 7 Times in 1 Post
|
|
Re: OT - math question.
yes, thank you, will try the calculation.
__________________
If I only could remember half the things I'd forgot, that would be a lot of stuff, I think - I don't know; I forgot!
A* E* Se! Gd! $-- C-^- Ai** M-- S? Ss---- RA Pw? Fq Bb++@ Tcp? L++++
Some of my webcomics. I've got 400+ webcomics at Last count, some dead.
Sig updated to remove non-working links.
|

February 19th, 2004, 09:04 AM
|
 |
Shrapnel Fanatic
|
|
Join Date: Jul 2001
Location: Southern CA, USA
Posts: 18,394
Thanks: 0
Thanked 12 Times in 10 Posts
|
|
Re: OT - math question.
Actually... if you have the arc length, that gives you the angles you need to calculate the height, as you can calculate the percent of the 360 degress of the circle that that arc takes up using the 2 * pi * radius calculation for circumference.
|

February 19th, 2004, 09:12 AM
|
 |
Shrapnel Fanatic
|
|
Join Date: Mar 2003
Location: CHEESE!
Posts: 10,009
Thanks: 0
Thanked 7 Times in 1 Post
|
|
Re: OT - math question.
no, that part wasn't stated well. i don't have the arc length, only the x distance moved.
__________________
If I only could remember half the things I'd forgot, that would be a lot of stuff, I think - I don't know; I forgot!
A* E* Se! Gd! $-- C-^- Ai** M-- S? Ss---- RA Pw? Fq Bb++@ Tcp? L++++
Some of my webcomics. I've got 400+ webcomics at Last count, some dead.
Sig updated to remove non-working links.
|

February 19th, 2004, 09:21 AM
|
Private
|
|
Join Date: Jun 2003
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: OT - math question.
Quote:
Originally posted by Imperator Fyron:
y position is not height.
|
can be - it depends on coordinate system used
there is no particular reason why the center of the sphere has to be the 0 point - he wanted the answer from the bottom of the sphere after all
likewise there is no particular reason why z has to be up, y back, and x right - reducing to circle makes y up using cartesian so it works as height
Quote:
Originally posted by Imperator Fyron:
Not sure what I was thinking with arc length, but you definitely need the angles associated with the vector from the starting point to the ending point. The relative height is just the z component of that vector.
Treating the movement as along a circle only works if the only component that is changing is the z component. If x or y change (but not both), then it is no longer a circle, but an ellipse.
|
you forgetting - he constraining himself to move on surface of sphere - any 'straight line' path constrained so makes for a segment of a perfect circle from some perspective - if you choose that perspective, it reduces to a circle just fine
also, narf specified direction of travel - to the right - which pretty much forces a circle sgement anyway
__________________
<img src=http://www.danasoft.com/sig/ alt= - /]
|

February 19th, 2004, 09:54 AM
|
 |
Shrapnel Fanatic
|
|
Join Date: Mar 2003
Location: CHEESE!
Posts: 10,009
Thanks: 0
Thanked 7 Times in 1 Post
|
|
Re: OT - math question.
x is left/right, y is up/down, z is not used.
it's a random straight line x movement and i need the y position on the sphere that a line straight up would hit.
sorry for not being clear the first time. i guess i need to reread mathamatical Posts at least three times.
__________________
If I only could remember half the things I'd forgot, that would be a lot of stuff, I think - I don't know; I forgot!
A* E* Se! Gd! $-- C-^- Ai** M-- S? Ss---- RA Pw? Fq Bb++@ Tcp? L++++
Some of my webcomics. I've got 400+ webcomics at Last count, some dead.
Sig updated to remove non-working links.
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is On
|
|
|
|
|