zeroLength method

bool zeroLength()

Whether the two anchor points coincide.

Implementation

bool zeroLength() =>
    (anchor0X - anchor1X).abs() < _distanceEpsilon &&
    (anchor0Y - anchor1Y).abs() < _distanceEpsilon;