This class implements a rectangular obstacle, whose sides are parallel to the cartesian axis.
Obtains the vertices of a polygonal shape. Any curved segment connecting two points will be considered as a straight line between them.