Re: Minimum distance from a point to a surface defined by constraints

From: The Qurqirish Dragon (qurqirishd_at_aol.com)
Date: 03/03/05


Date: 3 Mar 2005 06:44:49 -0800

Consider the 2- dimensional case:
each constraint defines a half-plane. Assuming they intersect at all
(so there is a solution), this will define a region R bordered by a
convex region, which has vertices at some of the points of
intersections of the lines in the constraints. These points can be
easily soved for, and the ones outside R (all points will be either on
the boundry of R or inside) can be discarded (check the equations to
see which ones fail to satisfy them).

Now, get the distance from P to each vertex. For sake of discussion,
assume that the smallest distance is to vertex v2, with adjacent
vertices v1 and v3, defining lines L1 and L3.
Find the projections onto L1 and L3 of P (normal projections, of
course). If this point lies on R (and at most 1 of these points will do
so), then that is the closest point (since R is convex), and you have
the distance. If neither of these projections lie on R, then v1 is the
closest point.

This should translate naturally into more dimensions, checking
distances to the vertices of the bounded region, and using the adjacent
hyperplanes to v1 for finding the distances. If there aren't enough
constraints to get vertices (e.g. x<0; y>0 in R^3), then use the
smallest-dimensional spaces in the intesections. (in the above example,
the z-axis is the intersection of the planes, so you would use the
distance from P to the z-axis, and the distance from z to the xz and yz
planes.)



Relevant Pages

  • Re: Minimum distance from a point to a surface defined by constraints
    ... each constraint defines a half-plane. ... Assuming they intersect at all ... get the distance from P to each vertex. ... This should translate naturally into more dimensions, ...
    (sci.math.num-analysis)
  • Re: distance between planes
    ... eigenvectors, which I Calculated from covariance matrix of my 16 5-d ... I was planning to calculate the distance between the planes. ... In general the lines must intersect at some point. ...
    (comp.soft-sys.matlab)
  • Re: Geometric Transformation Question
    ... take a compass and draw a circle centered at P of radius r. ... This circle will intersect ... one of the lines, say l, if the r is larger than the distance from P ...
    (sci.math)
  • Re: Line-Line-Segmentation in 3-Dimensions
    ... is there a algorithm to Calculate the Cutpoint of two ... In these situations it is usual to cast the problem into another similar ... example, to tell if two lines intersect, we could compute their distance ... define what the "cutpoint" means if the lines do not actually intersect. ...
    (comp.graphics.algorithms)
  • Re: Matter, energy, space, and direction.
    ... > can interpret the tangent to that trajectory as the object's 4-velocity ... > constraint, of course, is imposed only at the pointwhere the ... > knows its immediate surroundings (an infinitesimal distance away). ... All the object needs is its immediate environment at each point ...
    (sci.physics.relativity)