IMathDistanceRectangleToPoint Method

Calculate the distance of a rectangle to a point. And check is the point included inside of the rectange.

Definition

Namespace: PCBI.MathUtils
Assembly: PCB-Investigator (in PCB-Investigator.exe) Version: 0
C#
public static double DistanceRectangleToPoint(
	RectangleD RectangleDistance,
	PointD PointDistance,
	out bool IncludedInRectangle
)

Parameters

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?

Return Value

Double
Distance of rectangle and point.

See Also