public final class Vector3
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static Vector3 |
UNIT_X |
static Vector3 |
UNIT_Y |
static Vector3 |
UNIT_Z |
float |
x |
float |
y |
float |
z |
static Vector3 |
ZERO |
| Constructor and Description |
|---|
Vector3() |
Vector3(float[] array) |
Vector3(float xValue,
float yValue,
float zValue) |
Vector3(Vector3 other) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(float otherX,
float otherY,
float otherZ) |
void |
add(Vector3 other) |
Vector3 |
cross(Vector3 other) |
float |
distance2(Vector3 other) |
void |
divide(float magnitude) |
float |
dot(Vector3 other) |
float |
length() |
float |
length2() |
void |
multiply(float magnitude) |
void |
multiply(Vector3 other) |
float |
normalize() |
boolean |
pointsInSameDirection(Vector3 other) |
void |
set(float xValue,
float yValue,
float zValue) |
void |
set(Vector3 other) |
void |
subtract(Vector3 other) |
void |
subtractMultiple(Vector3 other,
float multiplicator) |
void |
zero() |
public float x
public float y
public float z
public static final Vector3 ZERO
public static final Vector3 UNIT_X
public static final Vector3 UNIT_Y
public static final Vector3 UNIT_Z
public Vector3()
public Vector3(float[] array)
public Vector3(float xValue,
float yValue,
float zValue)
public Vector3(Vector3 other)
public final void add(Vector3 other)
public final void add(float otherX,
float otherY,
float otherZ)
public final void subtract(Vector3 other)
public final void subtractMultiple(Vector3 other, float multiplicator)
public final void multiply(float magnitude)
public final void multiply(Vector3 other)
public final void divide(float magnitude)
public final void set(Vector3 other)
public final void set(float xValue,
float yValue,
float zValue)
public final float dot(Vector3 other)
public final float length()
public final float length2()
public final float distance2(Vector3 other)
public final float normalize()
public final void zero()
public final boolean pointsInSameDirection(Vector3 other)