calcCoordsBorders function

Coordinates of a surrounding rectangle in direction of a given vector.