Click or drag to resize

PolylineMath3DGetFractionalStartIndexOfPolylineWithCapInsetAbsolute(IListPolylinePointD3D, Double, Boolean, Boolean, PolylinePointD3DAsClass) Method

Gets the fractional start index of a polyline with a start cap when given the absolute inset of the start cap.

Namespace: Altaxo.Geometry
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static double GetFractionalStartIndexOfPolylineWithCapInsetAbsolute(
	IList<PolylinePointD3D> polylinePoints,
	double capInsetAbsolute,
	out bool startCapOrientationAndPositionProvided,
	out bool startCapNeedsJoiningSegment,
	PolylinePointD3DAsClass startCapCOS
)

Parameters

polylinePoints  IListPolylinePointD3D
The polyline points.
capInsetAbsolute  Double
The absolute cap inset. Must be a value >= 0.
startCapOrientationAndPositionProvided  Boolean
On return, if this value is true, the position and orientation of the start cap was calculated and is returned in startCapCOS.
startCapNeedsJoiningSegment  Boolean
On return, if this value is true, the start cap needs a joining segment with the same direction as the start cap to seamlessly merge with the first line segment.
startCapCOS  PolylinePointD3DAsClass
On return, if startCapOrientationAndPositionProvided is true, this value holds the position and orientation vectors of the start cap.

Return Value

Double
The fractional start index. A value of 0 indicate that the new polyline should start at the original polyline start, a value of 0.5 indicate that is should start in the middle between the first and second point, and so on.
See Also