isHorizontal method
Tests whether the segment is horizontal.
@return true
if the segment is horizontal
Implementation
bool isHorizontal() {
return p0.y == p1.y;
}
Tests whether the segment is horizontal.
@return true
if the segment is horizontal
bool isHorizontal() {
return p0.y == p1.y;
}