java.lang.Object
de.grogra.vecmath.Range
This class implements interval arithmetic.
Each range is an interval [a,b] with a <= b.
Some operations for interval arithmetic are implemented.
In general those operations expect an additional parameter
out
to store the result.
For some information on interval arithmetic read:
T. Hickey, Q. Ju, and M. H. Van Emden. 2001. Interval arithmetic: From
principles to implementation. J. ACM 48, 5 (September 2001), 1038-1068.
DOI=10.1145/502102.502106 http://doi.acm.org/10.1145/502102.502106- Author:
- Reinhard Hemmerling
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic final Range
static final Range
static final Range
static final Range
static final Range
static final Range
boolean
contains
(double x) boolean
Returns true if the supplied Range is fully contained within this Range.static final Range
static final Range
static final Range
static final Range
void
set
(double d) void
set
(double min, double max) void
static final Range
static final Range
static final Range
static final Range
static final Range
toString()
-
Field Details
-
a
public double a -
b
public double b
-
-
Constructor Details
-
Range
public Range() -
Range
public Range(double d) -
Range
public Range(double min, double max) -
Range
-
-
Method Details
-
toString
-
set
public void set(double d) -
set
public void set(double min, double max) -
set
-
contains
public boolean contains(double x) -
contains
Returns true if the supplied Range is fully contained within this Range. Fully contained is defined as having the minimum and maximum values of the fully contained range lie within the range of values of the containing Range.- Parameters:
x
- range to check- Returns:
-
add
-
sub
-
mul
-
div
-
sqr
-
sqrt
-
pow
-
abs
-
cos
-
sin
-
tan
-
acos
-
asin
-
atan
-
atan2
-