isHorizontal method

bool isHorizontal()

Tests whether the segment is horizontal.

@return true if the segment is horizontal

Implementation

bool isHorizontal() {
  return p0.y == p1.y;
}