All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sun.syndication.feed.module.georss.geometries.Envelope Maven / Gradle / Ivy

/*
 * Envelope.java
 *
 * Created on 12. februar 2007, 13:07
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package com.sun.syndication.feed.module.georss.geometries;

/**
 * Envelope, a bounding box spanned by an upper right and lower left corner point.
 * Note that if the box spans the -180 180 degree meridian the numerical value of the
 * minLongitude may be greater than the maxLongitude.
 *
 * @author runaas
 */
public class Envelope extends AbstractGeometry {
    protected double minLatitude, minLongitude, maxLatitude, maxLongitude;
    
    /** Creates a new instance of Envelope */
    public Envelope() {
        minLatitude = minLongitude = maxLatitude = maxLongitude = Double.NaN;
    }
    /**
     * Construct object from coordinate values
     *
     * @param minLatitude
     * @param minLongitude
     * @param maxLatitude
     * @param maxLongitude
     */
    public Envelope(double minLatitude, double minLongitude, double maxLatitude, double maxLongitude) {
        this.minLatitude  = minLatitude;
        this.minLongitude = minLongitude;
        this.maxLatitude  = maxLatitude;
        this.maxLongitude = maxLongitude;
    }
    
    /**
     * @return the minimum longitude
     */
    public double getMinLongitude() {
        return minLongitude;
    }
    
    /**
     * @return the minimum latitude
     */
    public double getMinLatitude() {
        return minLatitude;
    }
    
    /**
     * @return the maximum longitude
     */
    public double getMaxLongitude() {
        return maxLongitude;
    }
    
    /**
     * @return the maximum latitude
     */
    public double getMaxLatitude() {
        return maxLatitude;
    }
    
    /**
     * @param v  minimum longitude
     */
    public void setMinLongitude(double v) {
        minLongitude = v;
    }
    
    /**
     * @param v minimum latitude
     */
    public void setMinLatitude(double v) {
        minLatitude = v;
    }
    
    /**
     * @param v maximum longitude
     */
    public void setMaxLongitude(double v) {
        maxLongitude = v;
    }
    
    /**
     * @param v maximum latitude
     */
    public void setMaxLatitude(double v) {
        maxLatitude = v;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy