georegression.metric
Class Distance2D_I32
- java.lang.Object
-
- georegression.metric.Distance2D_I32
-
public class Distance2D_I32 extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor and Description Distance2D_I32()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static doubledistance(LineSegment2D_I32 line, Point2D_I32 p)Returns the distance the closest point on a line segment is from the specified point.
-
-
-
Method Detail
-
distance
public static double distance(LineSegment2D_I32 line, Point2D_I32 p)
Returns the distance the closest point on a line segment is from the specified point. The closest point is bounded to be along the line segment.
- Parameters:
line- A line segment. Not modified.p- The point. Not modified.- Returns:
- Distance the closest point on the line is away from the point.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG