Package org.eclipse.draw2d.geometry
Class PrecisionGeometry
java.lang.Object
org.eclipse.draw2d.geometry.PrecisionGeometry
A Utilities class for precise geometry calculations.
- Since:
- 3.7
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected static final BigDecimaldoubleToBigDecimal(double d) protected static final intdoubleToInteger(double doubleValue) Converts a double value into an integer value, avoiding rounding effects.protected static final doublepreciseAbs(double d) protected static final doublepreciseAdd(double d1, double d2) protected static final doublepreciseDivide(double d1, double d2) protected static final doublepreciseMultiply(double d1, double d2) protected static final doublepreciseNegate(double d) protected static final doublepreciseSubtract(double d1, double d2) 
- 
Constructor Details- 
PrecisionGeometrypublic PrecisionGeometry()
 
- 
- 
Method Details- 
preciseAddprotected static final double preciseAdd(double d1, double d2) 
- 
preciseSubtractprotected static final double preciseSubtract(double d1, double d2) 
- 
preciseMultiplyprotected static final double preciseMultiply(double d1, double d2) 
- 
preciseDivideprotected static final double preciseDivide(double d1, double d2) 
- 
preciseNegateprotected static final double preciseNegate(double d) 
- 
preciseAbsprotected static final double preciseAbs(double d) 
- 
doubleToBigDecimal
- 
doubleToIntegerprotected static final int doubleToInteger(double doubleValue) Converts a double value into an integer value, avoiding rounding effects.- Parameters:
- doubleValue- the double value to convert
- Returns:
- the integer value for the double.
 
 
-