The Geek Forum
Main Forums => Homework Help => Topic started by: Probie on March 26, 2009, 11:02:08 AM
-
If I have a plane equation Ax + By + Cz + D = 0 where A B and C are the normal of the plane and D is the distance from the 0,0,0, and I also have the real origin of the object in a 3D world which is nonzero (say for example something like -150, -150, -150 or there abouts) then is it possible to work out the distance from the nonzero origin? And if so can anyone explain it to me.
I have a page of rearranged equations and frankly its melting my brain. I think what i need to do is quite simple
1. work out the closest point of the plane along the normal from the origin.
2. use the origin and the point on the normal to work out the length of the 3D hypotenuse.
Any help would be very greatly appriciated. Even if its just a site that explains it in idiot for me.
Thank you.
-
This page over here (http://softsurfer.com/Archive/algorithm_0104/algorithm_0104.htm) has a point-to-plane formula (scroll down to "Distance of a Point to a Plane").
It's pretty gnarly.
-
Cheers, I'll try and smush that together with the wolfram stuff. I'm definitely over complicating it.
-
What the hell is a "unit normal"?
Whatever it is, it makes the formula a lot shorter.
-
a unit normal is a vector of values with the magnitude of 1.
So you could have 15, 5, 10 and normal is it so that the values would be rally small and have a magnitude of 1.
Disclaimer: this could be worded completely wrong :P
-
Well, if you can manage to deal only with unit normals, then your life will be easier.
-
yeah I think what i need to do is project the origin into the plane and then work out the distance from there.
-
I think i am onto something. If i crack it I will post a write up in extreme idiot terms for anyone who is like me and needs cutting a break!