Package org.openstreetmap.josm.gui.draw
Class MapViewPositionAndRotation
- java.lang.Object
-
- org.openstreetmap.josm.gui.draw.MapViewPositionAndRotation
-
public class MapViewPositionAndRotation extends java.lang.Object
A map view point combined with a rotation angle.- Since:
- 11748
-
-
Field Summary
Fields Modifier and Type Field Description private MapViewState.MapViewPoint
point
private double
theta
-
Constructor Summary
Constructors Constructor Description MapViewPositionAndRotation(MapViewState.MapViewPoint point, double theta)
Create a newMapViewPositionAndRotation
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MapViewState.MapViewPoint
getPoint()
Gets the point.double
getRotation()
Gets the rotationjava.lang.String
toString()
-
-
-
Field Detail
-
point
private final MapViewState.MapViewPoint point
-
theta
private final double theta
-
-
Constructor Detail
-
MapViewPositionAndRotation
public MapViewPositionAndRotation(MapViewState.MapViewPoint point, double theta)
Create a newMapViewPositionAndRotation
- Parameters:
point
- the pointtheta
- the rotation
-
-
Method Detail
-
getPoint
public MapViewState.MapViewPoint getPoint()
Gets the point.- Returns:
- The point
-
getRotation
public double getRotation()
Gets the rotation- Returns:
- the rotation
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-