PolylineMath3DGetFractionalEndIndexOfPolylineWithCapInsetAbsolute(IListPointD3D, Double, Boolean, Boolean, PolylinePointD3DAsClass) Method |
Gets the fractional end index of a polyline with an end cap when given the absolute inset of the end cap.
Namespace: Altaxo.GeometryAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax public static double GetFractionalEndIndexOfPolylineWithCapInsetAbsolute(
IList<PointD3D> polylinePoints,
double capInsetAbsolute,
out bool endCapForwardAndPositionProvided,
out bool endCapNeedsJoiningSegment,
PolylinePointD3DAsClass endCapCOS
)
Parameters
- polylinePoints IListPointD3D
- The polyline points.
- capInsetAbsolute Double
- The absolute cap inset. Must be a value >= 0.
- endCapForwardAndPositionProvided Boolean
- On return, if this value is true, the position and forward vector of the end cap was calculated and is returned in endCapCOS (but not the west and north vectors).
- endCapNeedsJoiningSegment Boolean
- On return, if this value is true, the end cap needs a joining segment with the same direction as the start cap to seamlessly merge with the last line segment.
- endCapCOS PolylinePointD3DAsClass
- On return, if endCapForwardAndPositionProvided is true, this value holds the position and forward vector of the end cap (but not the west and north vectors).
Return Value
DoubleThe fractional end index. A value of polylinePoints.Count-1 indicate that the new polyline should end at the original polyline end, a value of e.g. polylinePoints.Count-1.5 indicate that it should end in the middle between the next-to-last and last point, and so on.
See Also