Package mil.nga.sf.util.sweep
Class Segment
- java.lang.Object
-
- mil.nga.sf.util.sweep.Segment
-
public class Segment extends Object
Line segment of an edge between two points- Since:
- 1.0.5
- Author:
- osbornb
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SegmentgetAbove()Get the segment aboveSegmentgetBelow()Get the segment belowintgetEdge()Get the edge numberPointgetLeftPoint()Get the left pointPointgetRightPoint()Get the right pointintgetRing()Get the polygon ring numbervoidsetAbove(Segment above)Set the segment abovevoidsetBelow(Segment below)Set the segment below
-
-
-
Method Detail
-
getEdge
public int getEdge()
Get the edge number- Returns:
- edge number
-
getRing
public int getRing()
Get the polygon ring number- Returns:
- polygon ring number
-
getLeftPoint
public Point getLeftPoint()
Get the left point- Returns:
- left point
-
getRightPoint
public Point getRightPoint()
Get the right point- Returns:
- right point
-
getAbove
public Segment getAbove()
Get the segment above- Returns:
- segment above
-
setAbove
public void setAbove(Segment above)
Set the segment above- Parameters:
above- segment above
-
getBelow
public Segment getBelow()
Get the segment below- Returns:
- segment below
-
setBelow
public void setBelow(Segment below)
Set the segment below- Parameters:
below- segment below
-
-