#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2007
    Location
    Portugal
    Posts
    86
    Rep Power
    24

    Minimum distance in space


    Sorry if this is really basic (it certainly does sound really basic to me), but I'm quite bad at maths: Given a plan with equation Ax + By + Cz + D = 0 and a point (x0, y0, z0), how do I find the minimum distance between both?
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2007
    Posts
    65
    Rep Power
    91
    Sorry if this is really basic (it certainly does sound really basic to me), but I'm quite bad at maths: Given a plan with equation Ax + By + Cz + D = 0 and a point (x0, y0, z0), how do I find the minimum distance between both?
    dx = Ax-x0
    dy = By-y0
    dz = Cz-z0

    distance = sqrt(dx*dx+dy*dy+dz*dz)

    I think that is what you are saying.

IMN logo majestic logo threadwatch logo seochat tools logo