public abstract class GISMarkupSegment extends AbstractMarkupSegment
Modifier and Type | Method and Description |
---|---|
double |
length()
Returns the length of the path segment
|
void |
setEnd(double lat,
double lon)
Sets the end point of this GIS segment.
|
void |
setEnd(Point endPoint)
Sets end point of this segment.
|
void |
setStart(double lat,
double lon)
Sets the starting point of this GIS segment.
|
void |
setStart(Point startPoint)
Sets start point of this segment.
|
void |
setStartNextTo(IMarkupSegment previousSegment)
Sets coordinates of the end of the specified segment as start coordinates of this segment.
|
getEnd, getStart
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addTo, getDistanceSq, getEnd, getNearestPoint, getNearestPointOnRay2D, getOffsetOfPoint, getStart
public final void setStartNextTo(IMarkupSegment previousSegment)
IMarkupSegment
previousSegment
- implementation of IMarkupSegment
public final void setStart(double lat, double lon)
lat
- latitudelon
- longitudepublic final void setEnd(double lat, double lon)
lat
- latitudelon
- longitudepublic void setStart(Point startPoint)
IMarkupSegment
startPoint
- the point to set as start point of this segmentpublic void setEnd(Point endPoint)
IMarkupSegment
endPoint
- the point to set as end point of this segmentpublic double length()
AbstractMarkupSegment
length
in interface IMarkupSegment
length
in class AbstractMarkupSegment
Copyright © AnyLogic North America, LLC. All Rights Reserved.