Author Topic: arx vectors help  (Read 2206 times)

0 Members and 1 Guest are viewing this topic.

ckulhanek

  • Guest
arx vectors help
« 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

Swift

  • Swamp Rat
  • Posts: 595
Re: arx vectors help
« Reply #1 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
« Last Edit: October 12, 2006, 01:15:55 PM by Swift »

ckulhanek

  • Guest
Re: arx vectors help
« Reply #2 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

Swift

  • Swamp Rat
  • Posts: 595
Re: arx vectors help
« Reply #3 on: October 12, 2006, 05:14:21 PM »
MickD has an article on vectors around here, perhaps you need to give that a read

MickD

  • Gator
  • Posts: 3242
  • !false...it's funny 'cause it's true!
Re: arx vectors help
« Reply #4 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.
A programmer's wife tells him, "Run to the store and pick up a loaf of bread. If they have eggs, get a dozen."

The programmer comes home with 12 loaves of bread.