HOW TO CREATE VECTOR FROM 2 POINTS in (vb component)

Hei,

In Grasshopper there is already a component vector between 2pts. But in vb how can i make it.

For example:

Point1 (2,3,4)
Point2 (7,8,9)
?

Thanks

Basically a vector is a points relation to w0,0,0
So just subtract one point from the other and you are good to go.

And then you can unify it so it is one unit long, measure it’s length, multiply it, divide it,transform it and add that vector to other points to your liking.

Good luck

In other words:

Dim p0 As New Point3d(2, 3, 4)
Dim p1 As New Point3d(7, 8, 9)
Dim v As Vector3d = p1 - p0
' TODO...

– Dale

Thnx you a lot. i Got it and not my code is working :slight_smile:

Haha… That surprices me… :wink:

hehe, writting mistake, i meant Now**

1 Like