TheSwamp
Code Red => ARX Programming => Topic started 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

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

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

MickD has an article on vectors around here, perhaps you need to give that a read

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.