if (start.equals(end))
return null;
Point midPoint = new Point((end.x + start.x) / 2, (end.y + start.y) / 2);
int position = end.getPosition(start);
Vector vector;
if (position == PositionConstants.SOUTH
|| position == PositionConstants.EAST)
vector = new Vector(start, end);
else
vector = new Vector(end, start);
double length = vector.getLength();
double xSeparation = getSeparation() * vector.x / length;
double ySeparation = getSeparation() * vector.y / length;
Point bendPoint;