Results 1 to 3 of 3

Thread: Distance Point\Plane

  1. #1
    Junior Member Newbie
    Join Date
    Nov 2001
    Location
    Italy
    Posts
    21

    Distance Point\Plane

    Ho to all!

    Is there a way to compute point\plane distance if i only know point P coordinates and that the plane lays on ZY? (so x=0)

    Dexter

  2. #2
    Senior Member Frequent Contributor
    Join Date
    Feb 2000
    Posts
    569

    Re: Distance Point\Plane

    distance to the plane is simply the evaluation of plane equation using the point. If you do the math on paper you will see.

    so in your case, the plane equation is :

    1x = Distance; normal is (1,0,0) it could also be (-1,0,0); or if you want

    1x + 0y + 0z + 0 = Distance (generic plane equation is : Ax + By + Cz + D = distanceToPlane)

    As you can see if the point is on the plane then the distance = 0;

    if the distance > 0 than the point lies on the side pointed by the normal with distance being the distance.

    If distance is negative, then you are simply on the other side of the plane.

  3. #3
    Junior Member Newbie
    Join Date
    Nov 2001
    Location
    Italy
    Posts
    21

    Re: Distance Point\Plane

    So in particular cases that plane lays on ZY,XY,XZ distance will be given by:

    P = point
    ZY Distance = |P.X|;
    XY Distance = |P.Z|;
    XZ Distance = |P.Y|;

    ?

Similar Threads

  1. How to get the distance of camera from objects plane?
    By rakeshthp in forum OpenGL: Basic Coding
    Replies: 12
    Last Post: 10-03-2013, 06:48 AM
  2. max clip distance/plane on nVidia hardware
    By kRogue in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 10-14-2009, 01:56 PM
  3. problem with distance from plane algorithm
    By narayan2005 in forum OpenGL: General
    Replies: 3
    Last Post: 06-30-2005, 02:17 AM
  4. Distance Point To Line
    By Andrew Jameson in forum OpenGL: Basic Coding
    Replies: 6
    Last Post: 04-21-2003, 03:17 AM
  5. distance between a line and a point in 3d
    By jxu in forum OpenGL: Basic Coding
    Replies: 8
    Last Post: 03-23-2001, 09:27 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean