Click or drag to resize

Math3DGetRelativePositionsOnLineSegmentForPointsAtDistanceToPoint Method

Gets the relative positions of the two points on a line segment that have a given distance to a third point. Returned values may be outside [0,1], and if no solution exists the values are NaN.

Namespace: Altaxo.Geometry
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3448.0 (4.8.3448.0)
Syntax
C#
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 segment and the third point.

Return Value

TupleDouble, Double
A tuple of the two relative positions along the segment, possibly outside [0,1]; NaN when unsolvable.
See Also