Use isZero() when checking for straight curves in Curve.getLength()