<div dir="ltr"><div><div><div>Hi<br><br></div> If you want to know the distance between a point and line in 3D space :<br><br></div><div>1 - you calculate the vector director (= vecteur directeur ?) u-> of the line<br>
</div>2 - you select any point A from your line<br></div>3 - you calculate the vector AB-><br><div><div>4 - you calculate || (AB->) ^ (u->) || / || u-> || , with || . || euclidian norm and ^ cross product<br>
<br></div><div>the distance is d = || (AB->) ^ (u->) || / || u-> ||<br><br></div><div>Prince<br></div><div> <br> </div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/12/26 Max <span dir="ltr"><<a href="mailto:abonnements@revolwear.com" target="_blank">abonnements@revolwear.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Joćo,<br>
I patched something for you, maybe it's useful.<br>
<br>
<br><br>
<br>
<a href="http://mathsfirst.massey.ac.nz/Algebra/PythagorasTheorem/pythapp.htm" target="_blank">http://mathsfirst.massey.ac.nz/Algebra/PythagorasTheorem/pythapp.htm</a><br>
<br>
<br>
Am 11.12.2013 um 02:30 schrieb Joćo Pais <<a href="mailto:jmmmpais@googlemail.com">jmmmpais@googlemail.com</a>>:<br>
<br>
> Am 06.12.2013, 00:51 Uhr, schrieb Claude Heiland-Allen <<a href="mailto:claude@mathr.co.uk">claude@mathr.co.uk</a>>:<br>
><br>
>> On 05/12/13 23:40, Joćo Pais wrote:<br>
>>> Hello list,<br>
>>><br>
>>> I had a doubt, will try to explain.<br>
>>><br>
>>> I wanted to define a line in a 3d space through 2 points, and be able to<br>
>>> find out the distance from another point to that line. Since I'm very<br>
>>> bad at math, I wanted to know if anyone has done something similar, or<br>
>>> knows how to get to it.<br>
>><br>
>> <a href="http://paulbourke.net/geometry/pointlineplane/" target="_blank">http://paulbourke.net/geometry/pointlineplane/</a><br>
>><br>
>> first example on the page, you just need to clamp u to [0..1] if you<br>
>> want to make it work for a line segment instead of an infinite line.<br>
><br>
> it looks interesting, and I also checked for more content with a similar title. the thing is, my math/geometry skills are too bad, and I don't understand where they get the formulas for the points and lines. I'll keep watching the links, but I might not get it in time for the purpose I was looking for.<br>
><br>
> thanks anyway,<br>
><br>
> Joćo<br>
><br>
> _______________________________________________<br>
> <a href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list<br>
> UNSUBSCRIBE and account-management -> <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
<br>
<br>_______________________________________________<br>
<a href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
<br></blockquote></div><br></div>