Method GetParameterAtDistance
- Namespace
- GeometryHelper.Core
- Assembly
- GeometryHelper.dll
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.
public static double GetParameterAtDistance(GeoLine2 line, double distance)
Parameters
Returns
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.
public static double GetParameterAtDistance(GeoCircle2 circle, double distance)
Parameters
circleGeoCircle2distancedouble
Returns
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.
public static double GetParameterAtDistance(GeoRectangle2 rect, double distance)
Parameters
rectGeoRectangle2distancedouble
Returns
GetParameterAtDistance(GeoPolygon2, double)
Gets the normalized parameter at an arc length measured along the perimeter of a polygon.
public static double GetParameterAtDistance(GeoPolygon2 poly, double distance)
Parameters
polyGeoPolygon2distancedouble
Returns
GetParameterAtDistance(GeoPolyline2, double)
Gets the normalized parameter at an arc length measured along a polyline.
public static double GetParameterAtDistance(GeoPolyline2 polyline, double distance)
Parameters
polylineGeoPolyline2distancedouble
Returns
GetParameterAtDistance(GeoPolylineArc2, double)
Gets the normalized parameter at a distance along a chain that may curve.
public static double GetParameterAtDistance(GeoPolylineArc2 chain, double distance)
Parameters
chainGeoPolylineArc2distancedouble
Returns
Exceptions
- ArgumentNullException
Thrown when the chain is null.
GetParameterAtDistance(GeoPolygonArc2, double)
Gets the normalized parameter at a distance round a loop that may curve.
public static double GetParameterAtDistance(GeoPolygonArc2 loop, double distance)
Parameters
loopGeoPolygonArc2distancedouble
Returns
Exceptions
- ArgumentNullException
Thrown when the loop is null.