Check whether the figure constitutes a closed path.
Returns true if the figure is closed otherwise returns false.