Hi Luc,
>
> I agree with you, enums are much better. There are other places in
> [math] where we use boolean or even ints for such things. They mainly
> came for pre-java 5 era when enums where not available.
>
> Luc
>
And what do you think of replacing
- transform(double[]) with transform(double[], FORWARD)
- inverseTransform(double[]) with transform(double[], INVERSE)
(also using enums) ?
In fact, at the lowest level, all transforms are coded this way (a
boolean is passed to specifiy whether or not the inverse is to be
computed). So maybe the higher level methods should also do so.
Sébastien


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to