Table of Contents

Method ProjectToPolygonBoundary

Namespace
GeometryHelper.Core
Assembly
GeometryHelper.dll

ProjectToPolygonBoundary(GeoPolygon3, GeoPoint3)

Projects a point onto the boundary of a polygon, ignoring its interior.

public static GeoPoint3 ProjectToPolygonBoundary(GeoPolygon3 polygon, GeoPoint3 point)

Parameters

polygon GeoPolygon3
point GeoPoint3

Returns

GeoPoint3

ProjectToPolygonBoundary(GeoPolygon3, GeoPoint3, Tolerance)

Projects a point onto the boundary of a polygon, ignoring its interior, within a tolerance.

public static GeoPoint3 ProjectToPolygonBoundary(GeoPolygon3 polygon, GeoPoint3 point, Tolerance tolerance)

Parameters

polygon GeoPolygon3

The polygon.

point GeoPoint3

The point.

tolerance Tolerance

The tolerance; every side is measured as it is, so it changes nothing here.

Returns

GeoPoint3

The point of the outline nearest the point.

Remarks

A side offers its nearest point as the side it is however short, as the distance measures it: at a hundredth, the polygon (0, 0, 0), (10, 0, 0), (10, 0.006, 0), (0, 10, 0) is 0.03 from (10.03, 0.003, 0), and the closest point is (10, 0.003, 0), 0.03 away, where its side 0.006 long, no longer than the tolerance, offered its start (10, 0, 0), 0.0301496 away.

Exceptions

ArgumentNullException

Thrown when the polygon is null.