Determines if the curve is degenerate and if so returns the type of entity that the curve degenerates into.
By default this function throws the exception "not Implemented". Should be implemented in derived classes.