source: josm/src/org/openstreetmap/josm/data/osm/LineSegment.java@ 1

Last change on this file since 1 was 1, checked in by imi, 21 years ago

wiki 19:37, 27. Sep 2005

File size: 597 bytes
Line 
1package 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 */
9public 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.