Package net.minecraft.util.math.vector
Class Vector3d
java.lang.Object
net.minecraft.util.math.vector.Vector3d
- All Implemented Interfaces:
IPosition
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionadd
(double p_72441_1_, double p_72441_3_, double p_72441_5_) align
(EnumSet<Direction.Axis> p_197746_1_) static Vector3d
atBottomCenterOf
(Vector3i p_237492_0_) static Vector3d
atCenterOf
(Vector3i p_237489_0_) static Vector3d
atLowerCornerOf
(Vector3i p_237491_0_) boolean
closerThan
(IPosition p_237488_1_, double p_237488_2_) static Vector3d
directionFromRotation
(float p_189986_0_, float p_189986_1_) static Vector3d
directionFromRotation
(Vector2f p_189984_0_) double
distanceTo
(Vector3d p_72438_1_) double
distanceToSqr
(double p_186679_1_, double p_186679_3_, double p_186679_5_) double
distanceToSqr
(Vector3d p_72436_1_) double
boolean
static Vector3d
fromRGB24
(int p_237487_0_) double
get
(Direction.Axis p_216370_1_) int
hashCode()
double
length()
double
multiply
(double p_216372_1_, double p_216372_3_, double p_216372_5_) reverse()
scale
(double p_186678_1_) subtract
(double p_178786_1_, double p_178786_3_, double p_178786_5_) toString()
static Vector3d
upFromBottomCenterOf
(Vector3i p_237490_0_, double p_237490_1_) final double
x()
xRot
(float p_178789_1_) final double
y()
yRot
(float p_178785_1_) final double
z()
zRot
(float p_242988_1_)
-
Field Details
-
ZERO
-
x
public final double x -
y
public final double y -
z
public final double z
-
-
Constructor Details
-
Vector3d
public Vector3d(double p_i47092_1_, double p_i47092_3_, double p_i47092_5_) -
Vector3d
-
-
Method Details
-
fromRGB24
-
atCenterOf
-
atLowerCornerOf
-
atBottomCenterOf
-
upFromBottomCenterOf
-
vectorTo
-
normalize
-
dot
-
cross
-
subtract
-
subtract
-
add
-
add
-
closerThan
-
distanceTo
-
distanceToSqr
-
distanceToSqr
public double distanceToSqr(double p_186679_1_, double p_186679_3_, double p_186679_5_) -
scale
-
reverse
-
multiply
-
multiply
-
length
public double length() -
lengthSqr
public double lengthSqr() -
equals
-
hashCode
public int hashCode() -
toString
-
xRot
-
yRot
-
zRot
-
directionFromRotation
-
directionFromRotation
-
align
-
get
-
x
public final double x() -
y
public final double y() -
z
public final double z()
-