In the procedure for obstacles it is necessary to determine the crossing point of the obstacle and a grid line in the computational grid.
The obstacle is composed of straight sides. Let one side have the end points
and
.
The end points of the grid line (both computational grid points) are
and
. The crossing point must obey the following equation