Package net.minecraft.world.phys
Class Vec3
java.lang.Object
net.minecraft.world.phys.Vec3
- All Implemented Interfaces:
Position
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionadd
(double p_82521_, double p_82522_, double p_82523_) align
(EnumSet<Direction.Axis> p_82518_) static Vec3
atBottomCenterOf
(Vec3i p_82540_) static Vec3
atCenterOf
(Vec3i p_82513_) static Vec3
atLowerCornerOf
(Vec3i p_82529_) boolean
closerThan
(Position p_82510_, double p_82511_) static Vec3
directionFromRotation
(float p_82499_, float p_82500_) static Vec3
directionFromRotation
(Vec2 p_82504_) double
distanceTo
(Vec3 p_82555_) double
distanceToSqr
(double p_82532_, double p_82533_, double p_82534_) double
distanceToSqr
(Vec3 p_82558_) double
boolean
static Vec3
fromRGB24
(int p_82502_) double
get
(Direction.Axis p_82508_) int
hashCode()
double
double
double
length()
double
multiply
(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 Vec3
upFromBottomCenterOf
(Vec3i p_82515_, double p_82516_) with
(Direction.Axis p_193104_, double p_193105_) final double
x()
xRot
(float p_82497_) final double
y()
yRot
(float p_82525_) final double
z()
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
-
-
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
-
with
-
relative
-
x
public final double x() -
y
public final double y() -
z
public final double z()
-