HE_Mesh
6.0.1
|
Static Public Member Functions | |
static double | clampEpsilon (final double x, final double min, final double max) |
static boolean | isEqualHybrid (final double x, final double y) |
static boolean | isEqualAbs (final double x, final double y) |
static boolean | isEqualAbs (final double x, final double y, final double threshold) |
static boolean | isEqualRel (final double x, final double y) |
static boolean | isZero (final double x) |
static boolean | isZeroSq (final double x) |
static int | compareHybrid (final double x, final double y) |
static int | compareAbs (final double x, final double y) |
static int | compareRel (final double x, final double y) |
Static Public Attributes | |
static double | EPSILON = 1e-12 |
static double | SQEPSILON = EPSILON * EPSILON |
static double | EPSILONANGLE = 1e-5 * Math.PI / 180.0 |
WB_Epsilon contains functions for tolerance based floating point calculations.
|
static |
Clamp value to range with error margin.
x | |
min | |
max |
|
static |
Compare with error margin using isEqualAbs.
x | |
y |
References wblut.math.WB_Epsilon.isEqualAbs().
|
static |
Compare with error margin using isEqualHybrid.
x | |
y |
References wblut.math.WB_Epsilon.isEqualHybrid().
|
static |
Compare with error margin using isEqualRel.
x | |
y |
References wblut.math.WB_Epsilon.isEqualRel().
|
static |
Equality with absolute error range.
x | |
y |
References wblut.math.WB_Epsilon.EPSILON, and wblut.math.WB_Math.fastAbs().
|
static |
References wblut.math.WB_Epsilon.EPSILON, and wblut.math.WB_Math.fastAbs().
|
static |
Equality with error range. Absolute for small values, relative for large values
x | |
y |
References wblut.math.WB_Epsilon.EPSILON, wblut.math.WB_Math.fastAbs(), and wblut.math.WB_Math.max().
|
static |
Equality with relative error range.
x | |
y |
References wblut.math.WB_Epsilon.EPSILON, wblut.math.WB_Math.fastAbs(), and wblut.math.WB_Math.max().
|
static |
Check if value is zero with error range.
x |
References wblut.math.WB_Epsilon.EPSILON, and wblut.math.WB_Math.fastAbs().
|
static |
Check if value is zero within squared error range.
x |
References wblut.math.WB_Math.fastAbs(), and wblut.math.WB_Epsilon.SQEPSILON.
|
static |
General precision.
|
static |
General precision when square is used > EPSILON*EPSILON.