Math3DGetRelativePositionsOnLineSegmentForPointsAtDistanceToPoint Method |
Gets the relative positions of the two points on a line segment that have a given distance to a third point. The returned relative values are in the range [-Infinity, Infinity] and
therefore don't neccessarily lie directly on the line segment. Furthermore, a solution not always exists (in this case the returned values are NaN).
Namespace: Altaxo.GeometryAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax public static Tuple<double, double> GetRelativePositionsOnLineSegmentForPointsAtDistanceToPoint(
PointD3D p0,
PointD3D p1,
PointD3D ps,
double distance
)
Parameters
- p0 PointD3D
- The start point of the line segment..
- p1 PointD3D
- The end point of the line segment.
- ps PointD3D
- The third point.
- distance Double
- The distance between a point on the line sigment and the third point.
Return Value
TupleDouble,
DoubleThe relative positions of the points on the line segment that have the provided distance to the third point. The returned relative values are in the range [-Infinity, Infinity] and
therefore don't neccessarily lie directly on the line segment. Furthermore, a solution not always exists (in this case the returned values are NaN).
See Also