isStraight

fun isStraight(epsilon: Double = 0.01): Boolean

Determines if the Segment forms a straight line.

If the given Segment has control points, the function verifies that they do not add any curvature to the path.

Parameters

epsilon

The margin of error for what's considered a straight line.