shortest distance from plane to origin using a plane equation
<p>suppose i have a plane equation ax+by+cz=d, how can I go about finding the shortest distance from the plane to the origin?</p>

<p>I am going in reverse of this post. In this post, they start out with a point P0 and the normal. In my case, I only have the plane equation
<a href="http://stackoverflow.com/questions/8540531/distance-from-origin-to-plane-shortest">Distance from origin to plane (shortest)</a></p>

<p>Here is what I have so far. </p>

<pre><code>        #calculate the distance from plane to origin
        dist=math.sqrt(new_a**2+new_b**2+new_c**2)

        x_dist=(a*d)/dist
        y_dist=(b*d)/dist
        z_dist=(c*d)/dist
</code></pre>

<p>The normal of your plane is <code>[a,b,c]</code>. Multiply it by <code>d</code> and get the length of the result. This should give you what you need.</p>

python 3d plane