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_)booleancloserThan(Position p_82510_, double p_82511_)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_)reverse()scale(double p_82491_)subtract(double p_82493_, double p_82494_, double p_82495_)toString()static Vec3upFromBottomCenterOf(Vec3i p_82515_, double p_82516_)doublex()xRot(float p_82497_)doubley()yRot(float p_82525_)doublez()zRot(float p_82536_)
-
Field Details
-
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
-
-
Method Details
-
fromRGB24
-
atCenterOf
-
atLowerCornerOf
-
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_) -
scale
-
reverse
-
multiply
-
multiply
-
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
-
x
public final double x() -
y
public final double y() -
z
public final double z()
-