IMathDistanceRectangleToPoint Method
Calculate the distance of a rectangle to a point. And check is the point included inside of the rectange.
Namespace: PCBI.MathUtilsAssembly: PCB-Investigator (in PCB-Investigator.exe) Version: 0
public static double DistanceRectangleToPoint(
RectangleD RectangleDistance,
PointD PointDistance,
out bool IncludedInRectangle
)
Public Shared Function DistanceRectangleToPoint (
RectangleDistance As RectangleD,
PointDistance As PointD,
<OutAttribute> ByRef IncludedInRectangle As Boolean
) As Double
public:
static double DistanceRectangleToPoint(
RectangleD RectangleDistance,
PointD PointDistance,
[OutAttribute] bool% IncludedInRectangle
)
static member DistanceRectangleToPoint :
RectangleDistance : RectangleD *
PointDistance : PointD *
IncludedInRectangle : bool byref -> float
- RectangleDistance RectangleD
- The relevant rectangle to calculate the distance and check is the point included.
- PointDistance PointD
- The relevant point to calculate the distance to the rectangle.
- IncludedInRectangle Boolean
- Is the point inside of the rectangle?
DoubleDistance of rectangle and point.