public class Vector3f
extends java.lang.Object
Constructor and Description |
---|
Vector3f(float x,
float y,
float z) |
Modifier and Type | Method and Description |
---|---|
Vector3d |
asDouble() |
static float |
det(Vector3f v0,
Vector3f v1,
Vector3f v2) |
static Vector3f |
getBarycenter(Vector3f v0,
Vector3f v1,
float w0,
float w1) |
float |
getNorm() |
float |
getNorm2() |
Vector3f |
getNormalized() |
float |
getX() |
float |
getY() |
float |
getZ() |
Vector3f |
minus(Vector3f v) |
Vector3f |
negate() |
Vector3f |
plus(Vector3f v) |
static Vector3f |
product(Vector3f v1,
Vector3f v2)
Create a new vector cross-product of the given vectors.
|
float |
scalar(Vector3f v) |
Vector3f |
times(float d) |
java.lang.String |
toString() |
public float getX()
public float getY()
public float getZ()
public java.lang.String toString()
toString
in class java.lang.Object
public Vector3d asDouble()
public Vector3f negate()
public Vector3f times(float d)
public Vector3f getNormalized()
public float getNorm()
public float getNorm2()
public float scalar(Vector3f v)
public static Vector3f product(Vector3f v1, Vector3f v2)
v1
- the first given vector.v2
- the second given vector.