Package com.hypixel.hytale.math.shape
Class Box2D
java.lang.Object
com.hypixel.hytale.math.shape.Box2D
- All Implemented Interfaces:
Shape2D
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsPosition(Vector2d origin, double xx, double yy) booleancontainsPosition(Vector2d origin, Vector2d position) extend(double extentX, double extentY) getBox(double x, double y) doubleheight()booleanisIntersecting(Box2D other) minkowskiSum(Box2D bb) setEmpty()setMinMax(double[] min, double[] max) setMinMax(double min, double max) setMinMax(float[] min, float[] max) toString()doublewidth()
-
Field Details
-
CODEC
-
min
-
max
-
-
Constructor Details
-
Box2D
public Box2D() -
Box2D
-
Box2D
-
Box2D
public Box2D(double xMin, double yMin, double xMax, double yMax)
-
-
Method Details
-
setMinMax
-
setMinMax
-
setMinMax
-
setEmpty
-
setMinMax
-
union
-
assign
-
minkowskiSum
-
normalize
-
offset
-
sweep
-
extendToInt
-
extend
-
width
public double width() -
height
public double height() -
isIntersecting
-
getBox
-
containsPosition
- Specified by:
containsPositionin interfaceShape2D
-
containsPosition
- Specified by:
containsPositionin interfaceShape2D
-
toString
-