Class Vec3f
java.lang.Object
ltd.icecold.orangeengine.api.math.Vec2f
ltd.icecold.orangeengine.api.math.Vec3f
- Direct Known Subclasses:
Vec4f
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionadd(float x, float y, float z)
static Vec3f
copy()
static Vec3f
float
distanceSqr(Vec3f opponent)
static float
static float
getAngleBetween(Vec3f a, Vec3f b)
float
length()
float
multiply(float x, float y, float z)
static Vec3f
scale(float f)
static Vec3f
void
set(float x, float y, float z)
void
static Vec3f
toString()
-
Field Details
-
X_AXIS
-
Y_AXIS
-
Z_AXIS
-
z
public float z
-
-
Constructor Details
-
Vec3f
public Vec3f() -
Vec3f
public Vec3f(float x, float y, float z)
-
-
Method Details
-
set
public void set(float x, float y, float z) -
set
-
add
-
add
-
add
-
sub
-
sub
-
multiply
-
multiply
-
multiply
-
scale
-
scale
-
copy
-
length
public float length() -
lengthSqr
public float lengthSqr() -
distanceSqr
-
dot
-
cross
-
getAngleBetween
-
normalise
-
toString
-