|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jzy3d.maths.Vector3d
public class Vector3d
Storage for a 3 dimensional vector defined by two points. Provide the vector function that returns the vector as a Coord3d, as well as dot product and norm.
| Constructor Summary | |
|---|---|
Vector3d(Coord3d p1,
Coord3d p2)
Create a vector, described by two coordinates. |
|
Vector3d(float x1,
float y1,
float z1,
float x2,
float y2,
float z2)
Create a vector, described by two points. |
|
| Method Summary | |
|---|---|
Coord3d |
cross(Vector3d v)
Computes the vectorial product of the current and the given vector. |
double |
distance(Coord3d c)
Compute the distance between two coordinates. |
float |
dot(Vector3d v)
Compute the dot product between and current and given vector. |
Coord3d |
getCenter()
Return the central point of this segment. |
float |
norm()
Compute the norm of this vector. |
Coord3d |
vector()
Return the vector induced by this set of coordinates. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Vector3d(float x1,
float y1,
float z1,
float x2,
float y2,
float z2)
public Vector3d(Coord3d p1,
Coord3d p2)
| Method Detail |
|---|
public Coord3d vector()
public float dot(Vector3d v)
v - input vector
public Coord3d cross(Vector3d v)
public float norm()
public double distance(Coord3d c)
public Coord3d getCenter()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||