public class Vector3D extends Object
| Modifier and Type | Field and Description |
|---|---|
static Vector3D |
X_AXIS |
static Vector3D |
Y_AXIS |
static Vector3D |
Z_AXIS |
static Vector3D |
ZERO |
| Constructor and Description |
|---|
Vector3D(float x,
float y,
float z) |
| Modifier and Type | Method and Description |
|---|---|
Vector3D |
add(Vector3D p) |
static Vector3D |
centroid(Vector3D... points) |
Vector3D |
crossProduct(Vector3D p) |
Vector3D |
divide(float a) |
float |
dotProduct(Vector3D v) |
boolean |
equals(Object obj) |
float |
getX() |
float |
getY() |
float |
getZ() |
int |
hashCode() |
double |
length() |
Vector3D |
multiply(float a) |
Vector3D |
negate() |
Vector3D |
negateX() |
Vector3D |
negateXandY() |
Vector3D |
negateY() |
Vector3D |
normalize() |
Vector3D |
subtract(Vector3D p) |
Vector3D |
switchXandY() |
String |
toString() |
public static final Vector3D ZERO
public static final Vector3D X_AXIS
public static final Vector3D Y_AXIS
public static final Vector3D Z_AXIS
public float getX()
public float getY()
public float getZ()
public Vector3D multiply(float a)
public Vector3D divide(float a)
public Vector3D negateX()
public Vector3D negateY()
public Vector3D negateXandY()
public Vector3D switchXandY()
public Vector3D negate()
public float dotProduct(Vector3D v)
public double length()
public Vector3D normalize()
Copyright © 2018 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All rights reserved.