Package net.minecraft.util.math.vector
Class Vector3f
- java.lang.Object
-
- net.minecraft.util.math.vector.Vector3f
-
public final class Vector3f extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(float p_195904_1_, float p_195904_2_, float p_195904_3_)
void
add(Vector3f p_229189_1_)
void
clamp(float p_195901_1_, float p_195901_2_)
Vector3f
copy()
void
cross(Vector3f p_195896_1_)
float
dot(Vector3f p_195903_1_)
boolean
equals(java.lang.Object p_equals_1_)
int
hashCode()
void
lerp(Vector3f p_229190_1_, float p_229190_2_)
void
map(it.unimi.dsi.fastutil.floats.Float2FloatFunction p_229191_1_)
void
mul(float p_195898_1_)
void
mul(float p_229192_1_, float p_229192_2_, float p_229192_3_)
boolean
normalize()
Quaternion
rotation(float p_229193_1_)
Quaternion
rotationDegrees(float p_229187_1_)
void
set(float[] values)
void
set(float p_195905_1_, float p_195905_2_, float p_195905_3_)
void
setX(float x)
void
setY(float y)
void
setZ(float z)
void
sub(Vector3f p_195897_1_)
java.lang.String
toString()
void
transform(Matrix3f p_229188_1_)
void
transform(Quaternion p_214905_1_)
float
x()
float
y()
float
z()
-
-
-
Constructor Detail
-
Vector3f
public Vector3f()
-
Vector3f
public Vector3f(float p_i48098_1_, float p_i48098_2_, float p_i48098_3_)
-
Vector3f
public Vector3f(Vector3d p_i51412_1_)
-
Vector3f
public Vector3f(float[] values)
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object p_equals_1_)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
x
public float x()
-
y
public float y()
-
z
public float z()
-
mul
public void mul(float p_195898_1_)
-
mul
public void mul(float p_229192_1_, float p_229192_2_, float p_229192_3_)
-
clamp
public void clamp(float p_195901_1_, float p_195901_2_)
-
set
public void set(float p_195905_1_, float p_195905_2_, float p_195905_3_)
-
add
public void add(float p_195904_1_, float p_195904_2_, float p_195904_3_)
-
add
public void add(Vector3f p_229189_1_)
-
sub
public void sub(Vector3f p_195897_1_)
-
dot
public float dot(Vector3f p_195903_1_)
-
normalize
public boolean normalize()
-
cross
public void cross(Vector3f p_195896_1_)
-
transform
public void transform(Matrix3f p_229188_1_)
-
transform
public void transform(Quaternion p_214905_1_)
-
lerp
public void lerp(Vector3f p_229190_1_, float p_229190_2_)
-
rotation
public Quaternion rotation(float p_229193_1_)
-
rotationDegrees
public Quaternion rotationDegrees(float p_229187_1_)
-
copy
public Vector3f copy()
-
map
public void map(it.unimi.dsi.fastutil.floats.Float2FloatFunction p_229191_1_)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
set
public void set(float[] values)
-
setX
public void setX(float x)
-
setY
public void setY(float y)
-
setZ
public void setZ(float z)
-
-