Ignore:
Timestamp:
2016-01-01T19:51:11+01:00 (8 years ago)
Author:
Don-vip
Message:

javadoc update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/ProjectionBounds.java

    r8927 r9243  
    1313public class ProjectionBounds {
    1414    /**
    15      * The minimum and maximum coordinates.
     15     * The minimum east coordinate.
    1616     */
    17     public double minEast, minNorth, maxEast, maxNorth;
     17    public double minEast;
     18    /**
     19     * The minimum north coordinate.
     20     */
     21    public double minNorth;
     22    /**
     23     * The maximum east coordinate.
     24     */
     25    public double maxEast;
     26    /**
     27     * The minimum north coordinate.
     28     */
     29    public double maxNorth;
    1830
    1931    /**
    2032     * Construct bounds out of two points.
     33     * @param min min east/north
     34     * @param max max east/north
    2135     */
    2236    public ProjectionBounds(EastNorth min, EastNorth max) {
     
    2741    }
    2842
     43    /**
     44     * Construct bounds out of a single point.
     45     * @param p east/north
     46     */
    2947    public ProjectionBounds(EastNorth p) {
    3048        this.minEast = this.maxEast = p.east();
     
    3250    }
    3351
     52    /**
     53     * Construct bounds out of a center point and east/north dimensions.
     54     * @param center center east/north
     55     * @param east east dimension
     56     * @param north north dimension
     57     */
    3458    public ProjectionBounds(EastNorth center, double east, double north) {
    3559        this.minEast = center.east()-east/2.0;
     
    3963    }
    4064
     65    /**
     66     * Construct bounds out of two points.
     67     * @param minEast min east
     68     * @param minNorth min north
     69     * @param maxEast max east
     70     * @param maxNorth max north
     71     */
    4172    public ProjectionBounds(double minEast, double minNorth, double maxEast, double maxNorth) {
    4273        this.minEast = minEast;
     
    4677    }
    4778
     79    /**
     80     * Extends bounds to include point {@code e}.
     81     * @param e east/north to include
     82     */
    4883    public void extend(EastNorth e) {
    4984        if (e.east() < minEast) {
     
    6196    }
    6297
     98    /**
     99     * Returns the center east/north.
     100     * @return the center east/north
     101     */
    63102    public EastNorth getCenter() {
    64103        return new EastNorth((minEast + maxEast) / 2.0, (minNorth + maxNorth) / 2.0);
     
    73112     * The two bounds intersect? Compared to java Shape.intersects, if does not use
    74113     * the interior but the closure. ("&gt;=" instead of "&gt;")
     114     * @param b projection bounds
     115     * @return {@code true} if the two bounds intersect
    75116     */
    76117    public boolean intersects(ProjectionBounds b) {
     
    81122    }
    82123
     124    /**
     125     * Returns the min east/north.
     126     * @return the min east/north
     127     */
    83128    public EastNorth getMin() {
    84129        return new EastNorth(minEast, minNorth);
    85130    }
    86131
     132    /**
     133     * Returns the max east/north.
     134     * @return the max east/north
     135     */
    87136    public EastNorth getMax() {
    88137        return new EastNorth(maxEast, maxNorth);
Note: See TracChangeset for help on using the changeset viewer.