Package net.apartium.cocoabeans.space
Class BoxRegion
java.lang.Object
net.apartium.cocoabeans.space.BoxRegion
- All Implemented Interfaces:
Region
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCheck if the position is in the regiondoubleReturn the distance between region and position If position is inside the region, return 0 (Note that this is not the same as the distance between the region and the center of the region) (Note this method is more expensive thanRegion.contains(Position)method when you just want to check if the position is inside the region)doublegetX0()doublegetX1()doublegetY0()doublegetY1()doublegetZ0()doublegetZ1()voidvoidsetX(double x0, double x1) voidsetY(double y0, double y1) voidsetZ(double z0, double z1)
-
Constructor Details
-
BoxRegion
public BoxRegion(double x0, double x1, double y0, double y1, double z0, double z1) -
BoxRegion
-
-
Method Details
-
contains
Description copied from interface:RegionCheck if the position is in the region -
distance
Description copied from interface:RegionReturn the distance between region and position If position is inside the region, return 0 (Note that this is not the same as the distance between the region and the center of the region) (Note this method is more expensive thanRegion.contains(Position)method when you just want to check if the position is inside the region) -
getX0
public double getX0() -
getX1
public double getX1() -
getY0
public double getY0() -
getY1
public double getY1() -
getZ0
public double getZ0() -
getZ1
public double getZ1() -
setX
public void setX(double x0, double x1) -
setY
public void setY(double y0, double y1) -
setZ
public void setZ(double z0, double z1) -
set
-