Package net.minecraft.util.math.vector
Class Vector3f
java.lang.Object
net.minecraft.util.math.vector.Vector3f
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(float p_195904_1_, float p_195904_2_, float p_195904_3_) void
void
clamp
(float p_195901_1_, float p_195901_2_) copy()
void
float
boolean
int
hashCode()
void
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
rotation
(float p_229193_1_) 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
toString()
void
void
transform
(Quaternion p_214905_1_) float
x()
float
y()
float
z()
-
Field Details
-
XN
-
XP
-
YN
-
YP
-
ZN
-
ZP
-
x
private float x -
y
private float y -
z
private float z
-
-
Constructor Details
-
Vector3f
public Vector3f() -
Vector3f
public Vector3f(float p_i48098_1_, float p_i48098_2_, float p_i48098_3_) -
Vector3f
-
Vector3f
public Vector3f(float[] values)
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
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
-
sub
-
dot
-
normalize
public boolean normalize() -
cross
-
transform
-
transform
-
lerp
-
rotation
-
rotationDegrees
-
copy
-
map
public void map(it.unimi.dsi.fastutil.floats.Float2FloatFunction p_229191_1_) -
toString
-
set
public void set(float[] values) -
setX
public void setX(float x) -
setY
public void setY(float y) -
setZ
public void setZ(float z)
-