Class Vec2

java.lang.Object
net.minecraft.world.phys.Vec2

public class Vec2 extends Object
  • Field Details

    • ZERO

      public static final Vec2 ZERO
    • ONE

      public static final Vec2 ONE
    • UNIT_X

      public static final Vec2 UNIT_X
    • NEG_UNIT_X

      public static final Vec2 NEG_UNIT_X
    • UNIT_Y

      public static final Vec2 UNIT_Y
    • NEG_UNIT_Y

      public static final Vec2 NEG_UNIT_Y
    • MAX

      public static final Vec2 MAX
    • MIN

      public static final Vec2 MIN
    • x

      public final float x
    • y

      public final float y
  • Constructor Details

    • Vec2

      public Vec2​(float p_82474_, float p_82475_)
  • Method Details

    • scale

      public Vec2 scale​(float p_165904_)
    • dot

      public float dot​(Vec2 p_165906_)
    • add

      public Vec2 add​(Vec2 p_165911_)
    • add

      public Vec2 add​(float p_165909_)
    • equals

      public boolean equals​(Vec2 p_82477_)
    • normalized

      public Vec2 normalized()
    • length

      public float length()
    • lengthSquared

      public float lengthSquared()
    • distanceToSqr

      public float distanceToSqr​(Vec2 p_165915_)
    • negated

      public Vec2 negated()