类 Vec3
java.lang.Object
net.minecraft.world.phys.Vec3
- 所有已实现的接口:
Position
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明add
(double pX, double pY, double pZ) align
(EnumSet<Direction.Axis> pAxes) static Vec3
atBottomCenterOf
(Vec3i pToCopy) static Vec3
atCenterOf
(Vec3i pToCopy) static Vec3
atLowerCornerOf
(Vec3i pToCopy) static Vec3
atLowerCornerWithOffset
(Vec3i pToCopy, double pOffsetX, double pOffsetY, double pOffsetZ) boolean
closerThan
(Position pPos, double pDistance) static Vec3
directionFromRotation
(float pPitch, float pYaw) static Vec3
directionFromRotation
(Vec2 pVec) double
distanceTo
(Vec3 pVec) double
distanceToSqr
(double pX, double pY, double pZ) double
distanceToSqr
(Vec3 pVec) double
boolean
static Vec3
fromRGB24
(int pPacked) double
get
(Direction.Axis pAxis) int
hashCode()
double
double
double
length()
double
multiply
(double pFactorX, double pFactorY, double pFactorZ) offsetRandom
(RandomSource pRandom, float pFactor) reverse()
scale
(double pFactor) subtract
(double pX, double pY, double pZ) toString()
org.joml.Vector3f
static Vec3
upFromBottomCenterOf
(Vec3i pToCopy, double pVerticalOffset) with
(Direction.Axis pAxis, double pLength) final double
x()
xRot
(float pPitch) final double
y()
yRot
(float pYaw) final double
z()
zRot
(float pRoll)
-
字段详细资料
-
CODEC
-
ZERO
-
x
public final double x -
y
public final double y -
z
public final double z
-
-
构造器详细资料
-
Vec3
public Vec3(double pX, double pY, double pZ) -
Vec3
public Vec3(org.joml.Vector3f pVector)
-
-
方法详细资料
-
fromRGB24
-
atLowerCornerOf
-
atLowerCornerWithOffset
-
atCenterOf
-
atBottomCenterOf
-
upFromBottomCenterOf
-
vectorTo
-
normalize
-
dot
-
cross
-
subtract
-
subtract
-
add
-
add
-
closerThan
-
distanceTo
-
distanceToSqr
-
distanceToSqr
public double distanceToSqr(double pX, double pY, double pZ) -
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()
-