Class Diagram.XYPair
- java.lang.Object
-
- org.opentrafficsim.trafficcontrol.trafcod.Diagram.XYPair
-
-
Constructor Summary
Constructors Constructor Description XYPair(int x, int y)
Construct a new XY pair.XYPair(Diagram.RouteStep routeStep)
Construct a new XY pair from a route step.XYPair(Diagram.XYPair in, int quadrant)
Construct a rotated version of an XYPair.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getX()
Retrieve the X value.int
getY()
Retrieve the Y value.String
toString()
-
-
-
Constructor Detail
-
XYPair
XYPair(int x, int y)
Construct a new XY pair.- Parameters:
x
- int; the X valuey
- int; the Y value
-
XYPair
XYPair(Diagram.RouteStep routeStep)
Construct a new XY pair from a route step.- Parameters:
routeStep
- RouteStep; the route step
-
XYPair
XYPair(Diagram.XYPair in, int quadrant)
Construct a rotated version of an XYPair.- Parameters:
in
- XYPair; the initial versionquadrant
- int; the quadrant
-
-