Method GetPointAtDistance
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
GetPointAtDistance(double)
Gets the point at a signed distance measured from the origin along the line direction.
public GeoPoint2 GetPointAtDistance(double distance)
Parameters
distancedoubleThe distance from the origin; negative runs against the direction.
Returns
- GeoPoint2
The point at that distance.
Remarks
Because the direction is normalized, the parameter and the arc length are the same number here. Unlike a ray, a line has points behind its origin: from the line through (10, 20) along X, the distance -30 is the point (-20, 20).