<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-&gt; of the line<br>
</div>2 - you select any point A from your line<br></div>3 - you calculate the vector AB-&gt;<br><div><div>4 - you calculate || (AB-&gt;) ^ (u-&gt;) || / || u-&gt; || , with  || . || euclidian norm and ^ cross product<br>
<br></div><div>the distance is d =  || (AB-&gt;) ^ (u-&gt;) || / || u-&gt; ||<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">&lt;<a href="mailto:abonnements@revolwear.com" target="_blank">abonnements@revolwear.com</a>&gt;</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&#39;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 &lt;<a href="mailto:jmmmpais@googlemail.com">jmmmpais@googlemail.com</a>&gt;:<br>
<br>
&gt; Am 06.12.2013, 00:51 Uhr, schrieb Claude Heiland-Allen &lt;<a href="mailto:claude@mathr.co.uk">claude@mathr.co.uk</a>&gt;:<br>
&gt;<br>
&gt;&gt; On 05/12/13 23:40, Joćo Pais wrote:<br>
&gt;&gt;&gt; Hello list,<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; I had a doubt, will try to explain.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; I wanted to define a line in a 3d space through 2 points, and be able to<br>
&gt;&gt;&gt; find out the distance from another point to that line. Since I&#39;m very<br>
&gt;&gt;&gt; bad at math, I wanted to know if anyone has done something similar, or<br>
&gt;&gt;&gt; knows how to get to it.<br>
&gt;&gt;<br>
&gt;&gt; <a href="http://paulbourke.net/geometry/pointlineplane/" target="_blank">http://paulbourke.net/geometry/pointlineplane/</a><br>
&gt;&gt;<br>
&gt;&gt; first example on the page, you just need to clamp u to [0..1] if you<br>
&gt;&gt; want to make it work for a line segment instead of an infinite line.<br>
&gt;<br>
&gt; 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&#39;t understand where they get the formulas for the points and lines. I&#39;ll keep watching the links, but I might not get it in time for the purpose I was looking for.<br>

&gt;<br>
&gt; thanks anyway,<br>
&gt;<br>
&gt; Joćo<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; <a href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list<br>
&gt; UNSUBSCRIBE and account-management -&gt; <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 -&gt; <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>