Prev: Re: [FT] [computer] 3D math Next: Re: [FT][computer] Has anyone considered...

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
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
3 variables previous x, y, & z (instead of 360x,360y,Velocity). 

Either way you can generate the current course. But you are correct
just having to add the new vector to get the new course with

Brian Bell	   

> -----Original Message-----
> From: Tony Francis []
> Sent: Monday, September 11, 2000 5:19 AM
> To:	gzg-l@CSUA.Berkeley.EDU
> Subject:	Re: [FT][computer] Has anyone considered...

> "Bell, Brian K" wrote:

> >
> > 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 +
> Changes in course are calculated by vector arithmetic - simply add the
> thrust vector to the existing velocity vector to derive the new
> velocity
> vector.
> Tony

Prev: Re: [FT] [computer] 3D math Next: Re: [FT][computer] Has anyone considered...