Package net.minecraft.client.util.math
Class Vector3f
java.lang.Object
net.minecraft.client.util.math.Vector3f
public final class Vector3f extends Object
-
Field Summary
Fields Modifier and Type Field Description static Vector3fNEGATIVE_Xstatic Vector3fNEGATIVE_Ystatic Vector3fNEGATIVE_Zstatic Vector3fPOSITIVE_Xstatic Vector3fPOSITIVE_Ystatic Vector3fPOSITIVE_Zprivate floatxprivate floatyprivate floatz -
Constructor Summary
-
Method Summary
Modifier and Type Method Description voidadd(float x, float y, float z)voidadd(Vector3f vector)voidclamp(float min, float max)Vector3fcopy()voidcross(Vector3f vector)floatdot(Vector3f other)booleanequals(Object o)QuaterniongetDegreesQuaternion(float angle)QuaterniongetRadialQuaternion(float angle)floatgetX()floatgetY()floatgetZ()inthashCode()voidlerp(Vector3f vector, float delta)voidmodify(Float2FloatFunction function)voidmultiplyComponentwise(float x, float y, float z)booleannormalize()voidrotate(Quaternion rotation)voidscale(float scale)voidset(float x, float y, float z)voidsubtract(Vector3f other)StringtoString()voidtransform(Matrix3f matrix3f)
-
Field Details
-
NEGATIVE_X
-
POSITIVE_X
-
NEGATIVE_Y
-
POSITIVE_Y
-
NEGATIVE_Z
-
POSITIVE_Z
-
x
private float x -
y
private float y -
z
private float z
-
-
Constructor Details
-
Vector3f
public Vector3f() -
Vector3f
public Vector3f(float x, float y, float z) -
Vector3f
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
getX
public float getX() -
getY
public float getY() -
getZ
public float getZ() -
scale
@Environment(CLIENT) public void scale(float scale) -
multiplyComponentwise
@Environment(CLIENT) public void multiplyComponentwise(float x, float y, float z) -
clamp
@Environment(CLIENT) public void clamp(float min, float max) -
set
public void set(float x, float y, float z) -
add
@Environment(CLIENT) public void add(float x, float y, float z) -
add
-
subtract
-
dot
-
normalize
@Environment(CLIENT) public boolean normalize() -
cross
-
transform
-
rotate
-
lerp
-
getRadialQuaternion
-
getDegreesQuaternion
-
copy
-
modify
-
toString
-