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