public static class RMShapeTable.Span
extends java.lang.Object
implements java.lang.Comparable
Constructor and Description |
---|
Span(double aStart,
double anEnd)
Creates a new span.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(java.lang.Object aSpan)
Comparable implementation.
|
boolean |
contains(double aValue)
Returns whether given value is contained in the span (inclusive).
|
double |
getLength()
Returns the span length.
|
boolean |
intersects(RMShapeTable.Span aSpan)
Returns whether given span intersects this span.
|
java.lang.String |
toString()
Returns string representation of span.
|
public double getLength()
public boolean contains(double aValue)
public boolean intersects(RMShapeTable.Span aSpan)
public java.lang.String toString()
toString
in class java.lang.Object
public int compareTo(java.lang.Object aSpan)
compareTo
in interface java.lang.Comparable