PolylineMath3DGetFractionalEndIndexOfPolylineWithCapInsetAbsolute(IListPolylinePointD3D, 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<PolylinePointD3D> polylinePoints,
double capInsetAbsolute,
out bool endCapOrientationAndPositionProvided,
out bool endCapNeedsJoiningSegment,
PolylinePointD3DAsClass endCapCOS
)
Parameters
- polylinePoints IListPolylinePointD3D
- The polyline points.
- capInsetAbsolute Double
- The absolute cap inset. Must be a value >= 0.
- endCapOrientationAndPositionProvided Boolean
- On return, if this value is true, the position and orientation of the end cap was calculated and is returned in endCapCOS.
- 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 endCapOrientationAndPositionProvided is true, this value holds the position and orientation vectors of the end cap.
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