Class BBox



  • public class BBox
    extends Object
    • Constructor Detail

      • BBox

        public BBox(double lon1,
                    double lat1,
                    double lon2,
                    double lat2)
        Parameters:
        lon1 - the first longitude.
        lat1 - the first latitude.
        lon2 - the second longitude.
        lat2 - the second latitude.
      • BBox

        public BBox(BBox other)
      • BBox

        public BBox(Envelope envelope)
        Parameters:
        envelope - the envelope to create from.
    • Method Detail

      • set

        public void set(double lon1,
                        double lat1,
                        double lon2,
                        double lat2)
      • getLon1

        public double getLon1()
        Returns:
        the first longitude
      • getLon2

        public double getLon2()
        Returns:
        the second longitude
      • getLat1

        public double getLat1()
        Returns:
        the first latitude
      • getLat2

        public double getLat2()
        Returns:
        the seconds latitude
      • setLon1

        public void setLon1(double lon1)
        Parameters:
        lon1 - the first longitude
      • setLon2

        public void setLon2(double lon2)
        Parameters:
        lon2 - the second longitude
      • setLat1

        public void setLat1(double lat1)
        Parameters:
        lat1 - the first latitude
      • setLat2

        public void setLat2(double lat2)
        Parameters:
        lat2 - the second latitude
      • toString

        public String toString()
      • toEnvelope

        public Envelope toEnvelope()
        Returns:
        as an Envelope.
      • toEnvelope

        public void toEnvelope(Envelope envelope)
      • equals

        public boolean equals(Object other)