getVectorDirection function

Direction getVectorDirection(
  1. int x1,
  2. int y1,
  3. int x2,
  4. int y2,
)

Implementation

Direction getVectorDirection(int x1, int y1, int x2, int y2) {
  return y1 == y2 ? getXVertexDirection(x1, x2) : getYVertexDirection(y1, y2);
}