Martin Desruisseaux wrote:
> What is DoubleOperation? What are its advantage compared to the usual '-'
> operator? position.getOrdinate(i) returns double value anyway, and
> Math.abs(double) expect a double anyway.
>   
DoubleOperation is a stratagy object employed by the 
unsupported/geometry implementation to support "enhanced percision" .. 
one implementation uses normal double math, the other one converts 
things to BigDecimal to perform the math, and then back again to double 
for the answer.

One idea would be add this functionality to the Percision interface, as 
it is a similar concept to the rounding functions already present 
there.... but rounding and choice of math implementation are different 
concerns. (One idea I had was to use an implementation based on IBM's 
strict math if needed).

Jody

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to