Method GetPointAtParameter
- Namespace
- GeometryHelper.Core
- Assembly
- GeometryHelper.dll
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.
public static GeoPoint2 GetPointAtParameter(GeoLine2 line, double parameter)
Parameters
Returns
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.
public static GeoPoint2 GetPointAtParameter(GeoCircle2 circle, double parameter)
Parameters
circleGeoCircle2parameterdouble
Returns
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.
public static GeoPoint2 GetPointAtParameter(GeoRectangle2 rect, double parameter)
Parameters
rectGeoRectangle2parameterdouble
Returns
GetPointAtParameter(GeoPolygon2, double)
Gets the point at a normalized parameter along the perimeter of a polygon, starting at its first vertex. The parameter wraps.
public static GeoPoint2 GetPointAtParameter(GeoPolygon2 poly, double parameter)
Parameters
polyGeoPolygon2parameterdouble
Returns
GetPointAtParameter(GeoPolyline2, double)
Gets the point at a normalized parameter along a polyline, starting at its first vertex, clamped to its endpoints.
public static GeoPoint2 GetPointAtParameter(GeoPolyline2 polyline, double parameter)
Parameters
polylineGeoPolyline2parameterdouble
Returns
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.
public static GeoPoint2 GetPointAtParameter(GeoPolylineArc2 chain, double parameter)
Parameters
chainGeoPolylineArc2The chain.
parameterdoubleWhere to look, between 0 and 1; outside that it is clamped to the ends.
Returns
- GeoPoint2
The point there, found along the arcs rather than across them.
Exceptions
- ArgumentNullException
Thrown when the chain is null.
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.
public static GeoPoint2 GetPointAtParameter(GeoPolygonArc2 loop, double parameter)
Parameters
loopGeoPolygonArc2The loop.
parameterdoubleWhere to look, between 0 and 1; outside that it is clamped to the ends.
Returns
- GeoPoint2
The point there, found along the arcs rather than across them.
Exceptions
- ArgumentNullException
Thrown when the loop is null.