public class Box2D implements Shape2D
Class Box2D. Provides box2d functionality for the Hytale server.
java.lang.Object > Box2D
Field Summary
t
final
double
t
Field t.
min
final
Vector2d
min
Field min.
max
final
Vector2d
max
Field max.
min2
final
Vector2d
min2
Field min2.
max2
final
Vector2d
max2
Field max2.
x
final
double
x
Field x.
y
final
double
y
Field y.
Method Detail
Box2D
public
public
Box2D
()
Method Box2D.
if
public
else
if
(v.x > 0.0)
Method if.
- Parameters:
v.x >0.0
extend
Method extend.
- Parameters:
final doubleextentXfinal doubleextentY
width
public
double
width
()
Method width.
height
public
double
height
()
Method height.
getBox
Method getBox.
- Parameters:
final doublexfinal doubley
containsPosition
Method containsPosition.
- Parameters:
@Nonnull final Vector2dorigin@Nonnull final Vector2dposition
toString
public
String
toString
()
Method toString.
KeyedCodec
public
new
KeyedCodec
("Max", Vector2d.CODEC)
Method KeyedCodec.
- Parameters:
"Max""Max"Vector2d.CODECVector2d.CODEC