Click or drag to resize

PolylineMath3DGetFractionalStartIndexOfPolylineWithCapInsetAbsolute(IListPointD3D, 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<PointD3D> polylinePoints,
	double capInsetAbsolute,
	out bool startCapForwardAndPositionProvided,
	out bool startCapNeedsJoiningSegment,
	PolylinePointD3DAsClass startCapCOS
)

Parameters

polylinePoints  IListPointD3D
The polyline points.
capInsetAbsolute  Double
The absolute cap inset. Must be a value >= 0.
startCapForwardAndPositionProvided  Boolean
On return, if this value is true, the position and forward vector of the start cap was calculated and is returned in startCapCOS (but not the west and north vectors).
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 startCapForwardAndPositionProvided is true, this value holds the position and forward vector of the start cap (but not the west and north vector).

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