getYVertexDirection function

Direction getYVertexDirection(
  1. int y1,
  2. int y2
)

Implementation

Direction getYVertexDirection(int y1, int y2) {
  return y1 < y2 ? Direction.bottom : Direction.top;
}