getXVertexDirection function

Direction getXVertexDirection(
  1. int x1,
  2. int x2
)

Implementation

Direction getXVertexDirection(int x1, int x2) {
  return x1 < x2 ? Direction.right : Direction.left;
}