Package ac.boar.anticheat.util.math
Class Box
java.lang.Object
ac.boar.anticheat.util.math.Box
- All Implemented Interfaces:
Cloneable
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatcalculateMaxDistance(Axis axis, Box other, float maxDist) floatfloatclone()booleancontains(float x, float y, float z) booleancontract(float value) contract(float x, float y, float z) booleanexpand(float value) expand(float x, float y, float z) floatfloatfloatfloatintersection(Box Box) booleanintersects(float minX, float minY, float minZ, float maxX, float maxY, float maxZ) booleanintersects(Box Box) booleanintersects(Vec3 pos1, Vec3 pos2) booleanisNaN()booleanisOverlapped(Axis axis, Box other) static Boxoffset(float x, float y, float z) shrink(float x, float y, float z) stretch(float x, float y, float z) toString()toVec3f(float width) withMaxX(float maxX) withMaxY(float maxY) withMaxZ(float maxZ) withMinX(float minX) withMinY(float minY) withMinZ(float minZ)
-
Field Details
-
EMPTY
-
EPSILON
public static final float EPSILON- See Also:
-
minX
public final float minX -
minY
public final float minY -
minZ
public final float minZ -
maxX
public final float maxX -
maxY
public final float maxY -
maxZ
public final float maxZ
-
-
Constructor Details
-
Box
public Box(float x1, float y1, float z1, float x2, float y2, float z2)
-
-
Method Details
-
toVec3f
-
of
-
equals
-
chooseMin
-
chooseMax
-
isOverlapped
-
calculateMaxDistance
-
clip
-
clip
-
withMinX
-
withMinY
-
withMinZ
-
withMaxX
-
withMaxY
-
withMaxZ
-
shrink
-
stretch
-
stretch
-
expand
-
expand
-
intersection
-
union
-
offset
-
offset
-
intersects
-
intersects
public boolean intersects(float minX, float minY, float minZ, float maxX, float maxY, float maxZ) -
intersects
-
contains
-
contains
public boolean contains(float x, float y, float z) -
contract
-
contract
-
getMinPos
-
getMaxPos
-
getAverageSideLength
public float getAverageSideLength() -
getLengthX
public float getLengthX() -
getLengthY
public float getLengthY() -
getLengthZ
public float getLengthZ() -
isNaN
public boolean isNaN() -
toString
-
clone
-