PolyLine3Tangent Method

returns the tangent of the segment of given index. if the segment has zero length the next segment is chosen.

Definition

Namespace: Karamba.Geometry
Assembly: KarambaCommon (in KarambaCommon.dll) Version: 3.0.8.0+eb23a7103f0eca0b6d808121e15fec6899194e15
C#
public Vector3 Tangent(
	int segmentIndex,
	double tolerance = 1E-20
)

Parameters

segmentIndex  Int32
Index of the segment where the tangent is to be computed.
tolerance  Double  (Optional)
Tolerance for checking whether a segment has zero length.

Return Value

Vector3
Vector in the direction of the polyline segment.

See Also