Implement Curve#isHorizontal()
Cleanup computeBoolean() code.