RE: [FT][computer] Has anyone considered...
From: "Bell, Brian K" <Brian_Bell@d...>
Date: Mon, 11 Sep 2000 07:15:21 -0400
Subject: RE: [FT][computer] Has anyone considered...
My math skills must be lacking or I misunderstood your post
How does sqrt(x*x+y*y+z*z) give you a vector?
Unless you meant sqrt(x1*x2+y1*y2+z1*z2) where x1,y1,z1 represents the
starting point of your last move and x2,y2,z2 represents the end point
of
your last move (x1 should be x sub 1, and x2 should be x sub 2, etc. but
plain text is limiting).
If sqrt(x1*x2+y1*y2+z1*z2) is what you meant, then you still have to
maintain
3 variables previous x, y, & z (instead of 360x,360y,Velocity).
Either way you can generate the current course. But you are correct
about
just having to add the new vector to get the new course with
sqrt(x1*x2+y1*y2+z1*z2).
-----
Brian Bell
bkb@beol.net
-----
> -----Original Message-----
> From: Tony Francis [SMTP:tony.francis@kuju.com]
> Sent: Monday, September 11, 2000 5:19 AM
> To: gzg-l@CSUA.Berkeley.EDU
> Subject: Re: [FT][computer] Has anyone considered...
>
[snip].
> "Bell, Brian K" wrote:
>
[snip]
> >
> > Each ship would have a 360x,360y,Velocity course.
>
> An alternative way of storing this is as an [x y z] velocity vector.
> Current
> velocity is equal to the length of the vector (eg sqrt (x*x + y*y +
z*z)).
> Changes in course are calculated by vector arithmetic - simply add the
new
> thrust vector to the existing velocity vector to derive the new
overall
> velocity
> vector.
>
> Tony
>