public final class Vector3f
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private float |
x |
static Vector3f |
XN |
static Vector3f |
XP |
private float |
y |
static Vector3f |
YN |
static Vector3f |
YP |
private float |
z |
static Vector3f |
ZN |
static Vector3f |
ZP |
Constructor and Description |
---|
Vector3f() |
Vector3f(float[] values) |
Vector3f(float x,
float y,
float z) |
Vector3f(Vec3d vecIn) |
Modifier and Type | Method and Description |
---|---|
void |
add(float x,
float y,
float z) |
void |
add(Vector3f vectorIn) |
void |
apply(it.unimi.dsi.fastutil.floats.Float2FloatFunction functionIn) |
void |
clamp(float min,
float max) |
Vector3f |
copy() |
void |
cross(Vector3f vec) |
float |
dot(Vector3f vec) |
boolean |
equals(java.lang.Object p_equals_1_) |
float |
getX() |
float |
getY() |
float |
getZ() |
int |
hashCode() |
void |
lerp(Vector3f vectorIn,
float pctIn) |
void |
mul(float multiplier) |
void |
mul(float mx,
float my,
float mz) |
boolean |
normalize() |
Quaternion |
rotation(float valueIn) |
Quaternion |
rotationDegrees(float valueIn) |
void |
set(float[] values) |
void |
set(float x,
float y,
float z) |
void |
setX(float x) |
void |
setY(float y) |
void |
setZ(float z) |
void |
sub(Vector3f vec) |
java.lang.String |
toString() |
void |
transform(Matrix3f matrixIn) |
void |
transform(Quaternion quaternionIn) |
public static Vector3f XN
public static Vector3f XP
public static Vector3f YN
public static Vector3f YP
public static Vector3f ZN
public static Vector3f ZP
private float x
private float y
private float z
public Vector3f()
public Vector3f(float x, float y, float z)
public Vector3f(Vec3d vecIn)
public Vector3f(float[] values)
public boolean equals(java.lang.Object p_equals_1_)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public float getX()
public float getY()
public float getZ()
public void mul(float multiplier)
public void mul(float mx, float my, float mz)
public void clamp(float min, float max)
public void set(float x, float y, float z)
public void add(float x, float y, float z)
public void add(Vector3f vectorIn)
public void sub(Vector3f vec)
public float dot(Vector3f vec)
public boolean normalize()
public void cross(Vector3f vec)
public void transform(Matrix3f matrixIn)
public void transform(Quaternion quaternionIn)
public void lerp(Vector3f vectorIn, float pctIn)
public Quaternion rotation(float valueIn)
public Quaternion rotationDegrees(float valueIn)
public Vector3f copy()
public void apply(it.unimi.dsi.fastutil.floats.Float2FloatFunction functionIn)
public java.lang.String toString()
toString
in class java.lang.Object
public void set(float[] values)
public void setX(float x)
public void setY(float y)
public void setZ(float z)