Package net.minecraft.world.phys
Class Vec3
java.lang.Object
net.minecraft.world.phys.Vec3
- All Implemented Interfaces:
Position
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd(double p_82521_, double p_82522_, double p_82523_) align(EnumSet<Direction.Axis> p_82518_) static Vec3atBottomCenterOf(Vec3i p_82540_) static Vec3atCenterOf(Vec3i p_82513_) static Vec3atLowerCornerOf(Vec3i p_82529_) static Vec3atLowerCornerWithOffset(Vec3i p_272866_, double p_273680_, double p_273668_, double p_273687_) booleancloserThan(Position p_82510_, double p_82511_) booleancloserThan(Vec3 p_312866_, double p_312928_, double p_312788_) static Vec3directionFromRotation(float p_82499_, float p_82500_) static Vec3directionFromRotation(Vec2 p_82504_) doubledistanceTo(Vec3 p_82555_) doubledistanceToSqr(double p_82532_, double p_82533_, double p_82534_) doubledistanceToSqr(Vec3 p_82558_) doublebooleanstatic Vec3fromRGB24(int p_82502_) doubleget(Direction.Axis p_82508_) inthashCode()doubledoubledoublelength()doublemultiply(double p_82543_, double p_82544_, double p_82545_) offsetRandom(RandomSource p_272810_, float p_273473_) reverse()scale(double p_82491_) subtract(double p_82493_, double p_82494_, double p_82495_) toString()org.joml.Vector3fstatic Vec3upFromBottomCenterOf(Vec3i p_82515_, double p_82516_) with(Direction.Axis p_193104_, double p_193105_) final doublex()xRot(float p_82497_) final doubley()yRot(float p_82525_) final doublez()zRot(float p_82536_)
-
Field Details
-
CODEC
-
ZERO
-
x
public final double x -
y
public final double y -
z
public final double z
-
-
Constructor Details
-
Vec3
public Vec3(double p_82484_, double p_82485_, double p_82486_) -
Vec3
public Vec3(org.joml.Vector3f p_253821_)
-
-
Method Details
-
fromRGB24
-
atLowerCornerOf
-
atLowerCornerWithOffset
-
atCenterOf
-
atBottomCenterOf
-
upFromBottomCenterOf
-
vectorTo
-
normalize
-
dot
-
cross
-
subtract
-
subtract
-
add
-
add
-
closerThan
-
distanceTo
-
distanceToSqr
-
distanceToSqr
public double distanceToSqr(double p_82532_, double p_82533_, double p_82534_) -
closerThan
-
scale
-
reverse
-
multiply
-
multiply
-
offsetRandom
-
length
public double length() -
lengthSqr
public double lengthSqr() -
horizontalDistance
public double horizontalDistance() -
horizontalDistanceSqr
public double horizontalDistanceSqr() -
equals
-
hashCode
public int hashCode() -
toString
-
lerp
-
xRot
-
yRot
-
zRot
-
directionFromRotation
-
directionFromRotation
-
align
-
get
-
with
-
relative
-
x
public final double x() -
y
public final double y() -
z
public final double z() -
toVector3f
public org.joml.Vector3f toVector3f()
-