Package com.mojang.math
Class Vector3f
java.lang.Object
com.mojang.math.Vector3f
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(float p_122273_, float p_122274_, float p_122275_) void
void
clamp
(float p_122243_, float p_122244_) void
copy()
void
float
boolean
int
hashCode()
void
void
void
map
(it.unimi.dsi.fastutil.floats.Float2FloatFunction p_122259_) void
mul
(float p_122262_) void
mul
(float p_122264_, float p_122265_, float p_122266_) boolean
rotation
(float p_122271_) rotationDegrees
(float p_122241_) void
set
(float[] values) void
set
(float p_122246_, float p_122247_, float p_122248_) void
setX
(float x) void
setY
(float y) void
setZ
(float z) void
toString()
void
void
transform
(Quaternion p_122252_) float
x()
float
y()
float
z()
-
Field Details
-
CODEC
-
XN
-
XP
-
YN
-
YP
-
ZN
-
ZP
-
ZERO
-
x
private float x -
y
private float y -
z
private float z
-
-
Constructor Details
-
Vector3f
public Vector3f() -
Vector3f
public Vector3f(float p_122234_, float p_122235_, float p_122236_) -
Vector3f
-
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_122262_) -
mul
public void mul(float p_122264_, float p_122265_, float p_122266_) -
clamp
-
clamp
public void clamp(float p_122243_, float p_122244_) -
set
public void set(float p_122246_, float p_122247_, float p_122248_) -
load
-
add
public void add(float p_122273_, float p_122274_, float p_122275_) -
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_122259_) -
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)
-