Package net.minecraft.util.math.vector
Class Vector3d
- java.lang.Object
-
- net.minecraft.util.math.vector.Vector3d
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Vector3dadd(double p_72441_1_, double p_72441_3_, double p_72441_5_)Vector3dadd(Vector3d p_178787_1_)Vector3dalign(java.util.EnumSet<Direction.Axis> p_197746_1_)static Vector3datBottomCenterOf(Vector3i p_237492_0_)static Vector3datCenterOf(Vector3i p_237489_0_)static Vector3datLowerCornerOf(Vector3i p_237491_0_)booleancloserThan(IPosition p_237488_1_, double p_237488_2_)Vector3dcross(Vector3d p_72431_1_)static Vector3ddirectionFromRotation(float p_189986_0_, float p_189986_1_)static Vector3ddirectionFromRotation(Vector2f p_189984_0_)doubledistanceTo(Vector3d p_72438_1_)doubledistanceToSqr(double p_186679_1_, double p_186679_3_, double p_186679_5_)doubledistanceToSqr(Vector3d p_72436_1_)doubledot(Vector3d p_72430_1_)booleanequals(java.lang.Object p_equals_1_)static Vector3dfromRGB24(int p_237487_0_)doubleget(Direction.Axis p_216370_1_)inthashCode()doublelength()doublelengthSqr()Vector3dmultiply(double p_216372_1_, double p_216372_3_, double p_216372_5_)Vector3dmultiply(Vector3d p_216369_1_)Vector3dnormalize()Vector3dreverse()Vector3dscale(double p_186678_1_)Vector3dsubtract(double p_178786_1_, double p_178786_3_, double p_178786_5_)Vector3dsubtract(Vector3d p_178788_1_)java.lang.StringtoString()static Vector3dupFromBottomCenterOf(Vector3i p_237490_0_, double p_237490_1_)Vector3dvectorTo(Vector3d p_72444_1_)doublex()Vector3dxRot(float p_178789_1_)doubley()Vector3dyRot(float p_178785_1_)doublez()Vector3dzRot(float p_242988_1_)
-
-
-
Field Detail
-
ZERO
public static final Vector3d ZERO
-
x
public final double x
-
y
public final double y
-
z
public final double z
-
-
Constructor Detail
-
Vector3d
public Vector3d(double p_i47092_1_, double p_i47092_3_, double p_i47092_5_)
-
Vector3d
public Vector3d(Vector3f p_i225900_1_)
-
-
Method Detail
-
fromRGB24
public static Vector3d fromRGB24(int p_237487_0_)
-
upFromBottomCenterOf
public static Vector3d upFromBottomCenterOf(Vector3i p_237490_0_, double p_237490_1_)
-
normalize
public Vector3d normalize()
-
dot
public double dot(Vector3d p_72430_1_)
-
subtract
public Vector3d subtract(double p_178786_1_, double p_178786_3_, double p_178786_5_)
-
add
public Vector3d add(double p_72441_1_, double p_72441_3_, double p_72441_5_)
-
closerThan
public boolean closerThan(IPosition p_237488_1_, double p_237488_2_)
-
distanceTo
public double distanceTo(Vector3d p_72438_1_)
-
distanceToSqr
public double distanceToSqr(Vector3d p_72436_1_)
-
distanceToSqr
public double distanceToSqr(double p_186679_1_, double p_186679_3_, double p_186679_5_)
-
scale
public Vector3d scale(double p_186678_1_)
-
reverse
public Vector3d reverse()
-
multiply
public Vector3d multiply(double p_216372_1_, double p_216372_3_, double p_216372_5_)
-
length
public double length()
-
lengthSqr
public double lengthSqr()
-
equals
public boolean equals(java.lang.Object p_equals_1_)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
xRot
public Vector3d xRot(float p_178789_1_)
-
yRot
public Vector3d yRot(float p_178785_1_)
-
zRot
public Vector3d zRot(float p_242988_1_)
-
directionFromRotation
public static Vector3d directionFromRotation(float p_189986_0_, float p_189986_1_)
-
align
public Vector3d align(java.util.EnumSet<Direction.Axis> p_197746_1_)
-
get
public double get(Direction.Axis p_216370_1_)
-
-