| Line | |
|---|
| 1 | package org.openstreetmap.josm.data.osm;
|
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 | /**
|
|---|
| 5 | * One track line segment consisting of a pair of nodes (start/end)
|
|---|
| 6 | *
|
|---|
| 7 | * @author imi
|
|---|
| 8 | */
|
|---|
| 9 | public class LineSegment extends OsmPrimitive {
|
|---|
| 10 |
|
|---|
| 11 | /**
|
|---|
| 12 | * Create an line segment from the given starting and ending node
|
|---|
| 13 | * @param start Starting node of the line segment.
|
|---|
| 14 | * @param end Ending node of the line segment.
|
|---|
| 15 | */
|
|---|
| 16 | public LineSegment(Node start, Node end) {
|
|---|
| 17 | this.start = start;
|
|---|
| 18 | this.end = end;
|
|---|
| 19 | }
|
|---|
| 20 |
|
|---|
| 21 | /**
|
|---|
| 22 | * The starting node of the line segment
|
|---|
| 23 | */
|
|---|
| 24 | public Node start;
|
|---|
| 25 |
|
|---|
| 26 | /**
|
|---|
| 27 | * The ending node of the line segment
|
|---|
| 28 | */
|
|---|
| 29 | public Node end;
|
|---|
| 30 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.