net.minecraft.util.math

public class Vec2f

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

Field summary

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

Constructor summary

ModifierConstructor
public (float x, float y)

Method summary

Modifier and TypeMethod
public Vec2f
scale(float s)
scale(float s)
method_35582(float arg0)
multiply(float value)
public float
dot(Vec2 v)
dot(Vec2 v)
method_35583(class_241 arg0)
dot(Vec2f vec)
public Vec2f
add(Vec2 rhs)
add(Vec2 rhs)
method_35586(class_241 arg0)
add(Vec2f vec)
public Vec2f
add(float v)
add(float v)
method_35585(float arg0)
add(float value)
public Vec2f
normalized()
normalized()
method_35581()
normalize()
public float
length()
length()
method_35584()
length()
public float
lengthSquared()
lengthSquared()
method_35587()
lengthSquared()
public float
distanceToSqr(Vec2 p)
distanceToSqr(Vec2 p)
method_35589(class_241 arg0)
distanceSquared(Vec2f vec)
public Vec2f
negated()
negated()
method_35588()
negate()
public Vec2f
rotate(double angleRadians)
rotate(double angleRadians)
method_1_5398(double arg0)
rotate(double angle)