|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Uses of Vector3D in noc |
| Methods in noc that return Vector3D | |
Vector3D |
Vector3D.copy()
Copy the vector |
static Vector3D |
Vector3D.copy(Vector3D v)
Copy the vector |
Vector3D |
Vector3D.cross(Vector3D v)
Calculate the cross product with another vector |
static Vector3D |
Vector3D.add(Vector3D v1,
Vector3D v2)
Add two vectors |
static Vector3D |
Vector3D.sub(Vector3D v1,
Vector3D v2)
Subtract one vector from another |
static Vector3D |
Vector3D.div(Vector3D v1,
float n)
Divide a vector by a scalar |
static Vector3D |
Vector3D.mult(Vector3D v1,
float n)
Multiply a vector by a scalar |
| Methods in noc with parameters of type Vector3D | |
void |
Vector3D.setXYZ(Vector3D v)
Set x,y, and z coordinates from a Vector3D object. |
static Vector3D |
Vector3D.copy(Vector3D v)
Copy the vector |
void |
Vector3D.add(Vector3D v)
Add a vector to this vector |
void |
Vector3D.sub(Vector3D v)
Subtract a vector from this vector |
float |
Vector3D.dot(Vector3D v)
Calculate the dot product with another vector |
Vector3D |
Vector3D.cross(Vector3D v)
Calculate the cross product with another vector |
static Vector3D |
Vector3D.add(Vector3D v1,
Vector3D v2)
Add two vectors |
static Vector3D |
Vector3D.sub(Vector3D v1,
Vector3D v2)
Subtract one vector from another |
static Vector3D |
Vector3D.div(Vector3D v1,
float n)
Divide a vector by a scalar |
static Vector3D |
Vector3D.mult(Vector3D v1,
float n)
Multiply a vector by a scalar |
static float |
Vector3D.distance(Vector3D v1,
Vector3D v2)
Calculate the Euclidean distance between two points (considering a point as a vector object) |
static float |
Vector3D.angleBetween(Vector3D v1,
Vector3D v2)
Calculate the angle between two vectors, using the dot product |
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||