Class Diagram.XYPair
java.lang.Object
org.opentrafficsim.trafficcontrol.trafcod.Diagram.XYPair
- Enclosing class:
- Diagram
Pack two integer coordinates in one object.
-
Constructor Summary
ConstructorsConstructorDescriptionXYPair
(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
- the X valuey
- the Y value
-
XYPair
XYPair(Diagram.RouteStep routeStep) Construct a new XY pair from a route step.- Parameters:
routeStep
- the route step
-
XYPair
XYPair(Diagram.XYPair in, int quadrant) Construct a rotated version of an XYPair.- Parameters:
in
- the initial versionquadrant
- the quadrant
-
-
Method Details