001// License: GPL. For details, see LICENSE file. 002package org.openstreetmap.josm.gui.draw; 003 004import org.openstreetmap.josm.gui.MapViewState.MapViewPoint; 005 006/** 007 * A map view point combined with a rotation angle. 008 * 009 * @author Michael Zangl 010 * @since 11748 011 */ 012public class MapViewPositionAndRotation { 013 014 private final MapViewPoint point; 015 016 private final double theta; 017 018 /** 019 * Create a new {@link MapViewPositionAndRotation} 020 * @param point the point 021 * @param theta the rotation 022 */ 023 public MapViewPositionAndRotation(MapViewPoint point, double theta) { 024 super(); 025 this.point = point; 026 this.theta = theta; 027 } 028 029 /** 030 * Gets the point. 031 * @return The point 032 */ 033 public MapViewPoint getPoint() { 034 return point; 035 } 036 037 /** 038 * Gets the rotation 039 * @return the rotation 040 */ 041 public double getRotation() { 042 return theta; 043 } 044 045 @Override 046 public String toString() { 047 return "MapViewPositionAndRotation [" + point + ", theta=" + theta + "]"; 048 } 049}