isVertical method

bool isVertical()

Tests whether the segment is vertical.

@return true if the segment is vertical

Implementation

bool isVertical() {
  return p0.x == p1.x;
}