Table of Contents

Class Parametrization2

Namespace
GeometryHelper.Core
Assembly
GeometryHelper.dll

Provides static methods for locating positions along a curve, either by a normalized parameter or by an arc length measured from the start of the curve.

The parameter is normalized: 0 is the start of the curve and 1 is its end, whatever the curve actually measures. The distance is a true arc length from the start, running from 0 to the total length. The two are proportional, so distance = parameter * length.

Each curve starts where its own geometry says it does: a line at its StartPoint, a polyline or polygon at its first vertex, a rectangle at its LowerLeft corner, and a circle at angle zero, that is the point directly right of its centre. All of them run in the direction their vertices are ordered, and a circle runs counter-clockwise.

Values outside the natural range follow the shape of the curve. A closed curve — a polygon, a rectangle, a circle — wraps around, so a parameter of 1.25 is the same position as 0.25. A polyline clamps, because it is an open chain with no natural extension. A line segment extrapolates along the infinite line that carries it, which is the behaviour GeoLine2.GetPointAtParameter has always had.

public static class Parametrization2
Inheritance
Parametrization2
Inherited Members

Methods

GetDistanceAtParameter(GeoCircle2, double)

Gets the arc length from angle zero to a normalized parameter along a circle.

GetDistanceAtParameter(GeoLine2, double)

Gets the arc length from the start of a line segment to a normalized parameter.

GetDistanceAtParameter(GeoPolygon2, double)

Gets the arc length from the first vertex to a normalized parameter along a polygon.

GetDistanceAtParameter(GeoPolygonArc2, double)

Gets the distance round a loop that may curve at a normalized parameter.

GetDistanceAtParameter(GeoPolyline2, double)

Gets the arc length from the first vertex to a normalized parameter along a polyline.

GetDistanceAtParameter(GeoPolylineArc2, double)

Gets the distance along a chain that may curve at a normalized parameter.

GetDistanceAtParameter(GeoRectangle2, double)

Gets the arc length from the LowerLeft corner to a normalized parameter along a rectangle.

GetDistanceAtPoint(GeoCircle2, GeoPoint2)

Gets the arc length from angle zero to the point on a circle closest to the supplied point.

GetDistanceAtPoint(GeoLine2, GeoPoint2)

Gets the arc length from the start of a line segment to the point on it closest to the supplied point.

GetDistanceAtPoint(GeoPolygon2, GeoPoint2)

Gets the arc length from the first vertex to the point on the boundary of a polygon closest to the supplied point.

GetDistanceAtPoint(GeoPolygonArc2, GeoPoint2)

Gets how far round a loop that may curve the point nearest a point lies.

GetDistanceAtPoint(GeoPolygonArc2, GeoPoint2, Tolerance)

Gets how far round a loop that may curve the point nearest a point lies, within a tolerance.

GetDistanceAtPoint(GeoPolyline2, GeoPoint2)

Gets the arc length from the first vertex to the point on a polyline closest to the supplied point.

GetDistanceAtPoint(GeoPolylineArc2, GeoPoint2)

Gets how far along a chain that may curve the point nearest a point lies.

GetDistanceAtPoint(GeoPolylineArc2, GeoPoint2, Tolerance)

Gets how far along a chain that may curve the point nearest a point lies, within a tolerance.

GetDistanceAtPoint(GeoRectangle2, GeoPoint2)

Gets the arc length from the LowerLeft corner to the point on the boundary of a rectangle closest to the supplied point.

GetParameterAtDistance(GeoCircle2, double)

Gets the normalized parameter at an arc length measured along a circle. A circle of zero radius has no circumference to measure along, so the result is 0.

GetParameterAtDistance(GeoLine2, double)

Gets the normalized parameter at an arc length measured from the start of a line segment. A degenerate segment has no direction to measure along, so the result is 0.

GetParameterAtDistance(GeoPolygon2, double)

Gets the normalized parameter at an arc length measured along the perimeter of a polygon.

GetParameterAtDistance(GeoPolygonArc2, double)

Gets the normalized parameter at a distance round a loop that may curve.

GetParameterAtDistance(GeoPolyline2, double)

Gets the normalized parameter at an arc length measured along a polyline.

GetParameterAtDistance(GeoPolylineArc2, double)

Gets the normalized parameter at a distance along a chain that may curve.

GetParameterAtDistance(GeoRectangle2, double)

Gets the normalized parameter at an arc length measured along the perimeter of a rectangle. A rectangle with no perimeter gives 0.

GetParameterAtPoint(GeoCircle2, GeoPoint2)

Gets the normalized parameter of the point on a circle closest to the supplied point. The point does not have to lie on the circumference; only its direction from the centre matters.

GetParameterAtPoint(GeoLine2, GeoPoint2)

Projects a point onto the infinite line containing the segment and gets the parameter value t using default tolerance. t=0 corresponds to StartPoint, t=1 corresponds to EndPoint.

GetParameterAtPoint(GeoLine2, GeoPoint2, Tolerance)

Projects a point onto the infinite line containing the segment and gets the parameter value t within tolerance. t=0 corresponds to StartPoint, t=1 corresponds to EndPoint.

GetParameterAtPoint(GeoPolygon2, GeoPoint2)

Gets the normalized parameter of the point on the boundary of a polygon closest to the supplied point.

GetParameterAtPoint(GeoPolygonArc2, GeoPoint2)

Gets the normalized parameter of the point of a loop that may curve nearest a point.

GetParameterAtPoint(GeoPolygonArc2, GeoPoint2, Tolerance)

Gets the normalized parameter of the point of a loop that may curve nearest a point, within a tolerance.

GetParameterAtPoint(GeoPolyline2, GeoPoint2)

Gets the normalized parameter of the point on a polyline closest to the supplied point.

GetParameterAtPoint(GeoPolylineArc2, GeoPoint2)

Gets the normalized parameter of the point of a chain that may curve nearest a point.

GetParameterAtPoint(GeoPolylineArc2, GeoPoint2, Tolerance)

Gets the normalized parameter of the point of a chain that may curve nearest a point, within a tolerance.

GetParameterAtPoint(GeoRectangle2, GeoPoint2)

Gets the normalized parameter of the point on the boundary of a rectangle closest to the supplied point.

GetPointAtDistance(GeoCircle2, double)

Gets the point at an arc length measured along a circle from angle zero.

GetPointAtDistance(GeoLine2, double)

Gets the point at an arc length measured from the start of a line segment.

GetPointAtDistance(GeoPolygon2, double)

Gets the point at an arc length measured along the perimeter of a polygon.

GetPointAtDistance(GeoPolygonArc2, double)

Gets the point a distance round a loop that may curve.

GetPointAtDistance(GeoPolyline2, double)

Gets the point at an arc length measured along a polyline, clamped to its endpoints.

GetPointAtDistance(GeoPolylineArc2, double)

Gets the point a distance along a chain that may curve.

GetPointAtDistance(GeoRectangle2, double)

Gets the point at an arc length measured along the perimeter of a rectangle.

GetPointAtParameter(GeoCircle2, double)

Gets the point at a normalized parameter along a circle, starting at angle zero and running counter-clockwise. The parameter wraps, so 1.25 gives the same point as 0.25.

GetPointAtParameter(GeoLine2, double)

Gets the point at a normalized parameter along a line segment. Values outside [0, 1] extrapolate along the infinite line carrying the segment.

GetPointAtParameter(GeoPolygon2, double)

Gets the point at a normalized parameter along the perimeter of a polygon, starting at its first vertex. The parameter wraps.

GetPointAtParameter(GeoPolygonArc2, double)

Gets the point at a normalized parameter round a loop that may curve, where 0 is its start and 1 its end.

GetPointAtParameter(GeoPolyline2, double)

Gets the point at a normalized parameter along a polyline, starting at its first vertex, clamped to its endpoints.

GetPointAtParameter(GeoPolylineArc2, double)

Gets the point at a normalized parameter along a chain that may curve, where 0 is its start and 1 its end.

GetPointAtParameter(GeoRectangle2, double)

Gets the point at a normalized parameter along the perimeter of a rectangle, starting at its LowerLeft corner and running counter-clockwise. The parameter wraps.