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 Vector3f
NEGATIVE_X
static Vector3f
NEGATIVE_Y
static Vector3f
NEGATIVE_Z
static Vector3f
POSITIVE_X
static Vector3f
POSITIVE_Y
static Vector3f
POSITIVE_Z
private float
x
private float
y
private float
z
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description void
add(float x, float y, float z)
void
add(Vector3f vector)
void
clamp(float min, float max)
Vector3f
copy()
void
cross(Vector3f vector)
float
dot(Vector3f other)
boolean
equals(Object o)
Quaternion
getDegreesQuaternion(float angle)
Quaternion
getRadialQuaternion(float angle)
float
getX()
float
getY()
float
getZ()
int
hashCode()
void
lerp(Vector3f vector, float delta)
void
modify(Float2FloatFunction function)
void
multiplyComponentwise(float x, float y, float z)
boolean
normalize()
void
rotate(Quaternion rotation)
void
scale(float scale)
void
set(float x, float y, float z)
void
subtract(Vector3f other)
String
toString()
void
transform(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
-