net.minecraft.util.math

public class Vec2f

net.minecraft.world.phys.Vec2
net.minecraft.class_241
net.minecraft.util.math.Vec2f

Field summary

Modifier and TypeField
public static final Vec2f
ZERO
field_1340
ZERO
public static final Vec2f
ONE
field_1335
SOUTH_EAST_UNIT
public static final Vec2f
UNIT_X
field_1341
EAST_UNIT
public static final Vec2f
NEG_UNIT_X
field_1338
WEST_UNIT
public static final Vec2f
UNIT_Y
field_1336
SOUTH_UNIT
public static final Vec2f
NEG_UNIT_Y
field_1344
NORTH_UNIT
public static final Vec2f
MAX
field_1337
MAX_SOUTH_EAST
public static final Vec2f
MIN
field_1339
MIN_SOUTH_EAST
public static final com.mojang.serialization.Codec<Vec2f>
CODEC
field_56695
CODEC
public final float
x
field_1343
x
public final float
y
field_1342
y

Constructor summary

ModifierConstructor
public (float x, float y)

Method summary

Modifier and TypeMethod
public Vec2f
scale(float s)
method_35582(float arg0)
multiply(float value)
public float
dot(Vec2 v)
method_35583(class_241 arg0)
dot(Vec2f vec)
public Vec2f
add(Vec2 rhs)
method_35586(class_241 arg0)
add(Vec2f vec)
public Vec2f
add(float v)
method_35585(float arg0)
add(float value)
public boolean
equals(Vec2 rhs)
method_1016(class_241 arg0)
equals(Vec2f other)
public Vec2f
normalized()
method_35581()
normalize()
public float
length()
method_35584()
length()
public float
lengthSquared()
method_35587()
lengthSquared()
public float
distanceToSqr(Vec2 p)
method_35589(class_241 arg0)
distanceSquared(Vec2f vec)
public Vec2f
negated()
method_35588()
negate()
private static List
lambda$static$2(Vec2 arg0)
method_67712(class_241 arg0)
method_67712(Vec2f vec)
private static com.mojang.serialization.DataResult
lambda$static$0(List arg0)
method_67710(List arg0)
method_67710(List rawList)
private static Vec2f
lambda$static$1(List arg0)
method_67711(List arg0)
method_67711(List list)