Retrieves whether the curve is closed or not.
true if the curve is closed; otherwise, the method returns false.