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