Class Vector3f
Inheritance
java.lang.Object
Vector3f
Syntax
Constructors
Vector3f(float x, float y, float z)
Declaration
public Vector3f(float x, float y, float z)
Parameters
Type |
Name |
Description |
float |
x |
|
float |
y |
|
float |
z |
|
Methods
abs()
Declaration
Returns
absolute()
Declaration
public Vector3f absolute()
Returns
absolute(Vector3f dest)
Declaration
public Vector3f absolute(Vector3f dest)
Parameters
Returns
add(float r)
Declaration
public Vector3f add(float r)
Parameters
Type |
Name |
Description |
float |
r |
|
Returns
add(float xr, float yr, float zr)
Declaration
public Vector3f add(float xr, float yr, float zr)
Parameters
Type |
Name |
Description |
float |
xr |
|
float |
yr |
|
float |
zr |
|
Returns
add(Vector3f r)
Declaration
public Vector3f add(Vector3f r)
Parameters
Returns
angle(Vector3f v)
Declaration
public float angle(Vector3f v)
Parameters
Returns
angleCos(Vector3f v)
Declaration
public float angleCos(Vector3f v)
Parameters
Returns
angleSigned(float x, float y, float z, float nx, float ny, float nz)
Declaration
public float angleSigned(float x, float y, float z, float nx, float ny, float nz)
Parameters
Type |
Name |
Description |
float |
x |
|
float |
y |
|
float |
z |
|
float |
nx |
|
float |
ny |
|
float |
nz |
|
Returns
angleSigned(Vector3f v, Vector3f n)
Declaration
public float angleSigned(Vector3f v, Vector3f n)
Parameters
Returns
ceil()
Declaration
Returns
ceil(Vector3f dest)
Declaration
public Vector3f ceil(Vector3f dest)
Parameters
Returns
cross(Vector3f r)
Declaration
public Vector3f cross(Vector3f r)
Parameters
Returns
distance(float x, float y, float z)
Declaration
public float distance(float x, float y, float z)
Parameters
Type |
Name |
Description |
float |
x |
|
float |
y |
|
float |
z |
|
Returns
distance(float x1, float y1, float z1, float x2, float y2, float z2)
Declaration
public static float distance(float x1, float y1, float z1, float x2, float y2, float z2)
Parameters
Type |
Name |
Description |
float |
x1 |
|
float |
y1 |
|
float |
z1 |
|
float |
x2 |
|
float |
y2 |
|
float |
z2 |
|
Returns
distance(Vector3f v)
Declaration
public float distance(Vector3f v)
Parameters
Returns
distanceSquared(float x, float y, float z)
Declaration
public float distanceSquared(float x, float y, float z)
Parameters
Type |
Name |
Description |
float |
x |
|
float |
y |
|
float |
z |
|
Returns
distanceSquared(float x1, float y1, float z1, float x2, float y2, float z2)
Declaration
public static float distanceSquared(float x1, float y1, float z1, float x2, float y2, float z2)
Parameters
Type |
Name |
Description |
float |
x1 |
|
float |
y1 |
|
float |
z1 |
|
float |
x2 |
|
float |
y2 |
|
float |
z2 |
|
Returns
distanceSquared(Vector3f v)
Declaration
public float distanceSquared(Vector3f v)
Parameters
Returns
div(float r)
Declaration
public Vector3f div(float r)
Parameters
Type |
Name |
Description |
float |
r |
|
Returns
div(Vector3f r)
Declaration
public Vector3f div(Vector3f r)
Parameters
Returns
dot(float x, float y, float z)
Declaration
public float dot(float x, float y, float z)
Parameters
Type |
Name |
Description |
float |
x |
|
float |
y |
|
float |
z |
|
Returns
dot(Vector3f r)
Declaration
public float dot(Vector3f r)
Parameters
Returns
equals(Vector3f r)
Declaration
public boolean equals(Vector3f r)
Parameters
Returns
floor()
Declaration
Returns
floor(Vector3f dest)
Declaration
public Vector3f floor(Vector3f dest)
Parameters
Returns
get(int component)
Declaration
public float get(int component)
Parameters
Type |
Name |
Description |
int |
component |
|
Returns
getXY()
Declaration
Returns
getXZ()
Declaration
Returns
getYX()
Declaration
Returns
getYZ()
Declaration
Returns
getZX()
Declaration
Returns
getZY()
Declaration
Returns
half(float x, float y, float z)
Declaration
public Vector3f half(float x, float y, float z)
Parameters
Type |
Name |
Description |
float |
x |
|
float |
y |
|
float |
z |
|
Returns
half(float x, float y, float z, Vector3f dest)
Declaration
public Vector3f half(float x, float y, float z, Vector3f dest)
Parameters
Type |
Name |
Description |
float |
x |
|
float |
y |
|
float |
z |
|
Vector3f |
dest |
|
Returns
half(Vector3f other)
Declaration
public Vector3f half(Vector3f other)
Parameters
Returns
half(Vector3f other, Vector3f dest)
Declaration
public Vector3f half(Vector3f other, Vector3f dest)
Parameters
Returns
hashCode()
Declaration
Returns
hermite(Vector3f t0, Vector3f v1, Vector3f t1, float t, Vector3f dest)
Declaration
public Vector3f hermite(Vector3f t0, Vector3f v1, Vector3f t1, float t, Vector3f dest)
Parameters
Returns
isFinite()
Declaration
public boolean isFinite()
Returns
length()
Declaration
Returns
lengthSquared()
Declaration
public float lengthSquared()
Returns
lengthSquared(float x, float y, float z)
Declaration
public static float lengthSquared(float x, float y, float z)
Parameters
Type |
Name |
Description |
float |
x |
|
float |
y |
|
float |
z |
|
Returns
lerp(Vector3f dest, float lerpFactor)
Declaration
public Vector3f lerp(Vector3f dest, float lerpFactor)
Parameters
Type |
Name |
Description |
Vector3f |
dest |
|
float |
lerpFactor |
|
Returns
max()
Declaration
Returns
maxComponent()
Declaration
public int maxComponent()
Returns
min(Vector3f v)
Declaration
public float min(Vector3f v)
Parameters
Returns
minComponent()
Declaration
public int minComponent()
Returns
mul(float r)
Declaration
public Vector3f mul(float r)
Parameters
Type |
Name |
Description |
float |
r |
|
Returns
mul(Vector3f r)
Declaration
public Vector3f mul(Vector3f r)
Parameters
Returns
negate()
Declaration
Returns
negate(Vector3f dest)
Declaration
public Vector3f negate(Vector3f dest)
Parameters
Returns
normalize()
Declaration
public Vector3f normalize()
Returns
orthogonalize(Vector3f v)
Declaration
public Vector3f orthogonalize(Vector3f v)
Parameters
Returns
orthogonalize(Vector3f v, Vector3f dest)
Declaration
public Vector3f orthogonalize(Vector3f v, Vector3f dest)
Parameters
Returns
orthogonalizeUnit(Vector3f v)
Declaration
public Vector3f orthogonalizeUnit(Vector3f v)
Parameters
Returns
orthogonalizeUnit(Vector3f v, Vector3f dest)
Declaration
public Vector3f orthogonalizeUnit(Vector3f v, Vector3f dest)
Parameters
Returns
reflect(float x, float y, float z)
Declaration
public Vector3f reflect(float x, float y, float z)
Parameters
Type |
Name |
Description |
float |
x |
|
float |
y |
|
float |
z |
|
Returns
reflect(float x, float y, float z, Vector3f dest)
Declaration
public Vector3f reflect(float x, float y, float z, Vector3f dest)
Parameters
Type |
Name |
Description |
float |
x |
|
float |
y |
|
float |
z |
|
Vector3f |
dest |
|
Returns
reflect(Vector3f normal)
Declaration
public Vector3f reflect(Vector3f normal)
Parameters
Returns
reflect(Vector3f normal, Vector3f dest)
Declaration
public Vector3f reflect(Vector3f normal, Vector3f dest)
Parameters
Returns
rotate(float angleInDegrees, Vector3f axis)
Declaration
public Vector3f rotate(float angleInDegrees, Vector3f axis)
Parameters
Type |
Name |
Description |
float |
angleInDegrees |
|
Vector3f |
axis |
|
Returns
rotate(Quaternion rotation)
Declaration
public Vector3f rotate(Quaternion rotation)
Parameters
Returns
rotateAxis(float angle, float aX, float aY, float aZ, Vector3f dest)
Declaration
public Vector3f rotateAxis(float angle, float aX, float aY, float aZ, Vector3f dest)
Parameters
Type |
Name |
Description |
float |
angle |
|
float |
aX |
|
float |
aY |
|
float |
aZ |
|
Vector3f |
dest |
|
Returns
rotateAxis(float angle, float x, float y, float z)
Declaration
public Vector3f rotateAxis(float angle, float x, float y, float z)
Parameters
Type |
Name |
Description |
float |
angle |
|
float |
x |
|
float |
y |
|
float |
z |
|
Returns
rotateX(float angle)
Declaration
public Vector3f rotateX(float angle)
Parameters
Type |
Name |
Description |
float |
angle |
|
Returns
rotateX(float angle, Vector3f dest)
Declaration
public Vector3f rotateX(float angle, Vector3f dest)
Parameters
Type |
Name |
Description |
float |
angle |
|
Vector3f |
dest |
|
Returns
rotateY(float angle)
Declaration
public Vector3f rotateY(float angle)
Parameters
Type |
Name |
Description |
float |
angle |
|
Returns
rotateY(float angle, Vector3f dest)
Declaration
public Vector3f rotateY(float angle, Vector3f dest)
Parameters
Type |
Name |
Description |
float |
angle |
|
Vector3f |
dest |
|
Returns
rotateZ(float angle)
Declaration
public Vector3f rotateZ(float angle)
Parameters
Type |
Name |
Description |
float |
angle |
|
Returns
rotateZ(float angle, Vector3f dest)
Declaration
public Vector3f rotateZ(float angle, Vector3f dest)
Parameters
Type |
Name |
Description |
float |
angle |
|
Vector3f |
dest |
|
Returns
round()
Declaration
Returns
round(Vector3f dest)
Declaration
public Vector3f round(Vector3f dest)
Parameters
Returns
set(float x, float y, float z)
Declaration
public Vector3f set(float x, float y, float z)
Parameters
Type |
Name |
Description |
float |
x |
|
float |
y |
|
float |
z |
|
Returns
set(Vector3f other)
Declaration
public Vector3f set(Vector3f other)
Parameters
Returns
setX(float x)
Declaration
public void setX(float x)
Parameters
Type |
Name |
Description |
float |
x |
|
setY(float y)
Declaration
public void setY(float y)
Parameters
Type |
Name |
Description |
float |
y |
|
setZ(float z)
Declaration
public void setZ(float z)
Parameters
Type |
Name |
Description |
float |
z |
|
smoothStep(Vector3f v, float t, Vector3f dest)
Declaration
public Vector3f smoothStep(Vector3f v, float t, Vector3f dest)
Parameters
Returns
sub(float r)
Declaration
public Vector3f sub(float r)
Parameters
Type |
Name |
Description |
float |
r |
|
Returns
sub(Vector3f r)
Declaration
public Vector3f sub(Vector3f r)
Parameters
Returns
toString()
Declaration
Returns
x()
Declaration
Returns
y()
Declaration
Returns
z()
Declaration
Returns
zero()
Declaration
Returns