Class BoundBox
java.lang.Object
org.apache.sedona.core.formatMapper.shapefileParser.boundary.BoundBox
- All Implemented Interfaces:
Serializable
Created by zongsizhang on 7/6/17.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble[]return a copy of boundsdoublegetMMax()get max MdoublegetMMin()get min MdoublegetXMax()get max XdoublegetXMin()get min XdoublegetYMax()get max YdoublegetYMin()get min YdoublegetZMax()get max ZdoublegetZMin()get min Zstatic BoundBoxmergeBoundBox(BoundBox box1, BoundBox box2) calculate the union of two bound boxvoidset(int i, double value) set tuple at i with valuevoidsetMMax(double value) set max MvoidsetMMin(double value) set min MvoidsetXMax(double value) set max XvoidsetXMin(double value) set min XvoidsetYMax(double value) set max YvoidsetYMin(double value) set min YvoidsetZMax(double value) set max ZvoidsetZMin(double value) set min ZtoString()convert bounds array to string
-
Constructor Details
-
BoundBox
public BoundBox(double[] bounds) construct bounds with an array- Parameters:
bounds-
-
BoundBox
construct by copy other boundbox- Parameters:
otherbox-
-
BoundBox
public BoundBox()construct an initial boundBox with all value 0
-
-
Method Details
-
mergeBoundBox
calculate the union of two bound box- Parameters:
box1-box2-- Returns:
-
set
public void set(int i, double value) set tuple at i with value- Parameters:
i-value-
-
copyBounds
public double[] copyBounds()return a copy of bounds- Returns:
-
toString
convert bounds array to string -
getXMin
public double getXMin()get min X -
setXMin
public void setXMin(double value) set min X -
getXMax
public double getXMax()get max X -
setXMax
public void setXMax(double value) set max X -
getYMin
public double getYMin()get min Y -
setYMin
public void setYMin(double value) set min Y -
getYMax
public double getYMax()get max Y -
setYMax
public void setYMax(double value) set max Y -
getZMin
public double getZMin()get min Z -
setZMin
public void setZMin(double value) set min Z -
getZMax
public double getZMax()get max Z -
setZMax
public void setZMax(double value) set max Z -
getMMin
public double getMMin()get min M -
setMMin
public void setMMin(double value) set min M -
getMMax
public double getMMax()get max M -
setMMax
public void setMMax(double value) set max M
-