public class Segment
extends java.lang.Object
Constructor and Description |
---|
Segment(double pos1,
double pos2) |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(double y) |
boolean |
contains(Segment other) |
java.util.Collection<Segment> |
cutSegmentIfNeed(java.util.Collection<Segment> allDelays) |
boolean |
equals(java.lang.Object obj) |
double |
getLength() |
double |
getPos1() |
double |
getPos2() |
int |
hashCode() |
Segment |
merge(Segment this2) |
java.lang.String |
toString() |
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public final boolean contains(double y)
public final boolean contains(Segment other)
public java.lang.String toString()
toString
in class java.lang.Object
public final double getLength()
public final double getPos1()
public final double getPos2()