ID
- Name of the nodepublic class NodeGeotools<ID> extends AbstractNode<ID,com.vividsolutions.jts.geom.Coordinate>
Copyright (c) 2013-2014 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
Modifier and Type | Class and Description |
---|---|
static class |
NodeGeotools.INT
Integer ID implementation of the Geotools node.
|
static class |
NodeGeotools.STR
String ID implementation of the Geotools node.
|
Constructor and Description |
---|
NodeGeotools(ID id,
com.vividsolutions.jts.geom.Coordinate coordinate)
Construct a new Node.
|
NodeGeotools(ID id,
com.vividsolutions.jts.geom.Coordinate coordinate,
DoubleScalar.Abs<AnglePlaneUnit> direction,
DoubleScalar.Abs<AngleSlopeUnit> slope)
Construct a new Node.
|
Modifier and Type | Method and Description |
---|---|
double |
getX() |
double |
getY() |
double |
getZ() |
addLinkIn, addLinkOut, equals, getBounds, getDirection, getId, getLinksIn, getLinksOut, getLocation, getPoint, getSlope, hashCode, toString
public NodeGeotools(ID id, com.vividsolutions.jts.geom.Coordinate coordinate)
id
- ID; the Id of the new Nodecoordinate
- P; the location of the new Nodepublic NodeGeotools(ID id, com.vividsolutions.jts.geom.Coordinate coordinate, DoubleScalar.Abs<AnglePlaneUnit> direction, DoubleScalar.Abs<AngleSlopeUnit> slope)
id
- ID; the Id of the new Nodecoordinate
- P; the location of the new Nodedirection
- the 3D direction. "East" is 0 degrees. "North" is 90 degrees (1/2 pi radians).slope
- the slope as an angle.public final double getX()
getX
in class AbstractNode<ID,com.vividsolutions.jts.geom.Coordinate>
public final double getY()
getY
in class AbstractNode<ID,com.vividsolutions.jts.geom.Coordinate>
public final double getZ()
getZ
in class AbstractNode<ID,com.vividsolutions.jts.geom.Coordinate>
Copyright © 2014–2015 Delft University of Technology. All rights reserved.