Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 5783

Valid Vector3d endpoint in all directions? [Solved]

$
0
0

@RIL wrote:

[[Solved]]: Yes, after testing it appears that it is so.


Will this always give med a valid (vector) endpoint, anywhere in any direction in the world coordinate system?

Given a unit vector 'vect' and a 'start_pt' and a vector length 'Len':

Dim end_pt As New Point3d

end_pt = start_pt + (vect * Len)

... which, I assume, will result in the same line (with the same endpoint) as :

Dim Ln As New Line(start_pt, vect, Len)

Is that correct? I want to re-use an existing endpoint in a loop, instead of recreating it a zillion times.

Or are there better/faster ways to get the vector endpoint?

// Rolf

Posts: 5

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 5783

Trending Articles