Class Envelope1D

  • All Implemented Interfaces:
    java.io.Serializable

    public final class Envelope1D
    extends java.lang.Object
    implements java.io.Serializable
    A 1-dimensional interval.
    See Also:
    Serialized Form
    • Field Detail

      • vmin

        public double vmin
      • vmax

        public double vmax
    • Constructor Detail

      • Envelope1D

        public Envelope1D()
      • Envelope1D

        public Envelope1D​(double _vmin,
                          double _vmax)
      • Envelope1D

        public Envelope1D​(Envelope1D other)
    • Method Detail

      • setCoords

        public void setCoords​(double _vmin,
                              double _vmax)
      • setCoords

        public void setCoords​(Envelope1D other)
      • normalize

        public void normalize()
      • setEmpty

        public void setEmpty()
      • isEmpty

        public boolean isEmpty()
      • setInfinite

        public void setInfinite()
      • merge

        public void merge​(double v)
      • mergeNE

        public void mergeNE​(double v)
      • contains

        public boolean contains​(double v)
      • contains

        public boolean contains​(Envelope1D other)
        Returns True if the envelope contains the other envelope (boundary inclusive). Note: Will return false if either envelope is empty.
        Parameters:
        other - The other envelope.
        Returns:
        Return true if this contains the other.
      • intersect

        public void intersect​(Envelope1D other)
      • inflate

        public void inflate​(double delta)
      • _calculateToleranceFromEnvelope

        double _calculateToleranceFromEnvelope()
      • normalizeNoNaN_

        void normalizeNoNaN_()
      • setCoordsNoNaN_

        void setCoordsNoNaN_​(double vmin_,
                             double vmax_)
      • snapClip

        public double snapClip​(double v)
      • getWidth

        public double getWidth()
      • getCenter

        public double getCenter()
      • equals

        public boolean equals​(java.lang.Object _other)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object