Package com.hypixel.hytale.math.shape
Class Box
java.lang.Object
com.hypixel.hytale.math.shape.Box
- All Implemented Interfaces:
Shape
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionassign(double minX, double minY, double minZ, double maxX, double maxY, double maxZ) static BoxcenteredCube(Vector3d center, double inradius) clone()booleancontainsBlock(int x, int y, int z) booleancontainsBlock(Vector3i origin, int x, int y, int z) booleancontainsPosition(double x, double y, double z) static Boxdoubledepth()doublevoidexpand(double radius) extend(double extentX, double extentY, double extentZ) booleanforEachBlock(double x, double y, double z, double epsilon, TriIntPredicate consumer) <T> booleanforEachBlock(double x, double y, double z, double epsilon, T t, TriIntObjPredicate<T> consumer) getBox(double x, double y, double z) getMax()doubledoublegetMin()doubledoublebooleandoubleheight()static BoxhorizontallyCentered(double width, double height, double depth) booleanintersectsLine(Vector3d start, Vector3d end) booleanisIntersecting(Box other) booleandoublemiddleX()doublemiddleY()doublemiddleZ()minkowskiSum(Box bb) offset(double x, double y, double z) rotateX(float angleInRadians) rotateY(float angleInRadians) rotateZ(float angleInRadians) scale(float scale) setEmpty()setMinMax(double[] min, double[] max) setMinMax(double min, double max) setMinMax(float[] min, float[] max) toString()doublewidth()Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.hypixel.hytale.math.shape.Shape
containsPosition, containsPosition, forEachBlock, forEachBlock, forEachBlock, forEachBlock, forEachBlock, forEachBlock, getBox
-
Field Details
-
CODEC
-
UNIT
-
min
-
max
-
-
Constructor Details
-
Box
public Box() -
Box
-
Box
-
Box
public Box(double xMin, double yMin, double zMin, double xMax, double yMax, double zMax)
-
-
Method Details
-
horizontallyCentered
-
cube
-
centeredCube
-
setMinMax
-
setMinMax
-
setMinMax
-
setEmpty
-
setMinMax
-
union
-
assign
-
assign
@Nonnull public Box assign(double minX, double minY, double minZ, double maxX, double maxY, double maxZ) -
minkowskiSum
-
scale
-
normalize
-
rotateX
-
rotateY
-
rotateZ
-
offset
-
offset
-
sweep
-
extend
-
width
public double width() -
height
public double height() -
depth
public double depth() -
dimension
-
getThickness
public double getThickness() -
getMaximumThickness
public double getMaximumThickness() -
getVolume
public double getVolume() -
hasVolume
public boolean hasVolume() -
isIntersecting
-
isUnitBox
public boolean isUnitBox() -
middleX
public double middleX() -
middleY
public double middleY() -
middleZ
public double middleZ() -
clone
-
getMin
-
getMax
-
getBox
-
containsPosition
public boolean containsPosition(double x, double y, double z) - Specified by:
containsPositionin interfaceShape
-
expand
public void expand(double radius) -
containsBlock
public boolean containsBlock(int x, int y, int z) -
containsBlock
-
forEachBlock
public boolean forEachBlock(double x, double y, double z, double epsilon, @Nonnull TriIntPredicate consumer) - Specified by:
forEachBlockin interfaceShape
-
forEachBlock
public <T> boolean forEachBlock(double x, double y, double z, double epsilon, T t, @Nonnull TriIntObjPredicate<T> consumer) - Specified by:
forEachBlockin interfaceShape
-
getMaximumExtent
public double getMaximumExtent() -
intersectsLine
-
toString
-