Class Diagram.XYPair
java.lang.Object
org.opentrafficsim.trafficcontrol.trafcod.Diagram.XYPair
- Enclosing class:
- Diagram
Pack two integer coordinates in one object.
-
Constructor Summary
ConstructorDescriptionXYPair
(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
-
Constructor Details
-
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
-
-
Method Details