ID
- Type of the node name (e.g., String, Integer).public class NodePoint2D<ID> extends AbstractNode<ID,Point2D>
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 |
NodePoint2D.INT
Integer ID implementation of the Point2D node.
|
static class |
NodePoint2D.STR
String ID implementation of the Point2D node.
|
Constructor and Description |
---|
NodePoint2D(ID id,
Point2D point)
Construct a new Node.
|
NodePoint2D(ID id,
Point2D point,
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 NodePoint2D(ID id, Point2D point)
id
- the Id of the new Nodepoint
- the location of the Nodepublic NodePoint2D(ID id, Point2D point, DoubleScalar.Abs<AnglePlaneUnit> direction, DoubleScalar.Abs<AngleSlopeUnit> slope)
id
- the Id of the new Nodepoint
- the location of the 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,Point2D>
public final double getY()
getY
in class AbstractNode<ID,Point2D>
public final double getZ()
getZ
in class AbstractNode<ID,Point2D>
Copyright © 2014–2015 Delft University of Technology. All rights reserved.