Notifications
Clear all
[Closed] extend 2 point line in z axis
Feb 22, 2012 11:34 am
Hello,
I am wondering how i can extend a 2 point line for example by 10 cm.
the points dont contain any directions, so a vector has to be made.
I think this is done by (P2 – P1), but then.
See the image below.
2 Replies
Feb 22, 2012 11:34 am
Hi,
just found the solution.
here is the example code. i almost had it correct, just had to normailze the vector so it would have a value of 1.
new_point = vertex_array[2] - vertex_array[1]
new_point= normalize new_point
afsteun = vertex_array[1] + (-10 * new_point)