Package net.minecraft.world.phys
Class Vec2
java.lang.Object
net.minecraft.world.phys.Vec2
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method Summary
- 
Field Details- 
ZERO
- 
ONE
- 
UNIT_X
- 
NEG_UNIT_X
- 
UNIT_Y
- 
NEG_UNIT_Y
- 
MAX
- 
MIN
- 
xpublic final float x
- 
ypublic final float y
 
- 
- 
Constructor Details- 
Vec2public Vec2(float p_82474_, float p_82475_) 
 
- 
- 
Method Details- 
scale
- 
dot
- 
add
- 
add
- 
equals
- 
normalized
- 
lengthpublic float length()
- 
lengthSquaredpublic float lengthSquared()
- 
distanceToSqr
- 
negated
 
-