public class OpenInterval extends Interval
Constructor and Description |
---|
OpenInterval()
Default constructor - creates the empty interval.
|
OpenInterval(double min,
double max)
Initializing constructor - create a new open interval with specified
endpoints.
|
OpenInterval(Interval I)
Copy constructor - create a new open interval initialized to the argument.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(OpenInterval I)
Are intervals equal
|
boolean |
intersect(Interval I)
Is there a nonzero intersection between this interval
and the argument.
|
boolean |
membership(double x)
Is point a member of the open interval
|
java.lang.String |
toString()
Return the contents of the interval as a
String . |
containsAE, convexHull, createFromEndpoints, createFromMidpoint, equals, getMax, getMin, intersection, intersects, isBoundary, measure, midpoint, print, println, setMax, setMin, vertexCoordinates
public OpenInterval()
public OpenInterval(double min, double max) throws MathException
min
- left endpointmax
- right endpointMathException
- max is smaller than minpublic OpenInterval(Interval I) throws MathException
I
- interval to copyMathException
- malformed interval objectpublic boolean membership(double x)
membership
in class Interval
x
- point to test for membershippublic boolean intersect(Interval I)
I
- interval to be testedpublic boolean equals(OpenInterval I)
I
- interval object to be checked for equality