public final class Vector3f extends Object
Modifier and Type | Field and 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 and Description |
---|
Vector3f() |
Vector3f(float x,
float y,
float z) |
Vector3f(Vec3d other) |
Modifier and Type | Method and 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(it.unimi.dsi.fastutil.floats.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) |
public static Vector3f NEGATIVE_X
public static Vector3f POSITIVE_X
public static Vector3f NEGATIVE_Y
public static Vector3f POSITIVE_Y
public static Vector3f NEGATIVE_Z
public static Vector3f POSITIVE_Z
private float x
private float y
private float z
public Vector3f()
public Vector3f(float x, float y, float z)
public Vector3f(Vec3d other)
public float getX()
public float getY()
public float getZ()
@Environment(value=CLIENT) public void scale(float scale)
@Environment(value=CLIENT) public void multiplyComponentwise(float x, float y, float z)
@Environment(value=CLIENT) public void clamp(float min, float max)
public void set(float x, float y, float z)
@Environment(value=CLIENT) public void add(float x, float y, float z)
@Environment(value=CLIENT) public void add(Vector3f vector)
@Environment(value=CLIENT) public void subtract(Vector3f other)
@Environment(value=CLIENT) public float dot(Vector3f other)
@Environment(value=CLIENT) public boolean normalize()
@Environment(value=CLIENT) public void cross(Vector3f vector)
@Environment(value=CLIENT) public void transform(Matrix3f matrix3f)
public void rotate(Quaternion rotation)
@Environment(value=CLIENT) public void lerp(Vector3f vector, float delta)
@Environment(value=CLIENT) public Quaternion getRadialQuaternion(float angle)
@Environment(value=CLIENT) public Quaternion getDegreesQuaternion(float angle)
@Environment(value=CLIENT) public Vector3f copy()
@Environment(value=CLIENT) public void modify(it.unimi.dsi.fastutil.floats.Float2FloatFunction function)