complexvariables / conformalmapping

Conformal mapping toolkit for MATLAB
Other
11 stars 9 forks source link

Tangents on curves #57

Open tobydriscoll opened 9 years ago

tobydriscoll commented 9 years ago

Tangents can be handy and might be required in some circumstances. But they place a burden on user constructed curves that may have no payoff in every case. We should make them optional, and then check if one exists wherever it is about to be used.

ehkropf commented 9 years ago

Agreed.

I propose the base curve class throw an error with message ident CMT:NotDefined in its tangent definition. Classes that need the tangent from a curve should use the try/catch mechanism and check for this error. This would be an example of using the error message idents discussed in #55.