TheSwamp

Code Red => ARX Programming => Topic started by: ckulhanek on October 12, 2006, 12:10:09 PM

Title: arx vectors help
Post by: ckulhanek on October 12, 2006, 12:10:09 PM
can someone give me a brief rundown on AcGeVector2d and 3d. I don't get it. When I create one, i'm passing in...  what?  Points? And how does the function create a vector from this? I don't understand. Thanks for help.

-ck
Title: Re: arx vectors help
Post by: Swift on October 12, 2006, 01:12:07 PM
a vector is the difference between two points, or how do i get from pt a to pt b.

 think of it as an autocad command
line
10,10,10
@5,5,5 // vector
the resulting point is 15,15,15

The AcGeCeVector2d and 3d are both based from the origin
Title: Re: arx vectors help
Post by: ckulhanek on October 12, 2006, 02:06:00 PM
so, it's the sum of the points, actually, is the new point location, from the origin. And the vector, is distance, from 0,0,0.  Interresting.

a vector is the difference between two points, or how do i get from pt a to pt b.

 think of it as an autocad command
line
10,10,10
@5,5,5 // vector
the resulting point is 15,15,15

The AcGeCeVector2d and 3d are both based from the origin
Title: Re: arx vectors help
Post by: Swift on October 12, 2006, 05:14:21 PM
MickD has an article on vectors around here, perhaps you need to give that a read
Title: Re: arx vectors help
Post by: MickD on October 12, 2006, 05:48:03 PM
Welcome aboard ckulhanek!
have a look here -> http://www.theswamp.org/index.php?page=16 for a brief article on vectors, there's another one around there too.