|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ij3d.geom.Point3D ij3d.geom.Vector3D
public class Vector3D
Vecteur 3D
Constructor Summary | |
---|---|
Vector3D()
constructeurs |
|
Vector3D(double x,
double y,
double z)
Constructor for the Vector3D object |
|
Vector3D(float x,
float y,
float z)
Constructor for the Vector3D object |
|
Vector3D(Point3D P)
|
|
Vector3D(Vector3D V)
Copy constructor for the Vector3D object |
Method Summary | |
---|---|
Vector3D |
add(Vector3D v)
Add a vector |
Vector3D |
add(Vector3D v,
double f1,
double f2)
Description of the Method |
Vector3D |
add(Vector3D v,
float f1,
float f2)
add a vector with ration |
double |
angle(Vector3D v)
angle between two vectors in radians between 0 and PI |
double |
angleDegrees(Vector3D v)
angle between two vectors in degrees between 0 and 180 |
Vector3D |
crossProduct(Vector3D V)
the cross product between two vectors |
double |
distance(Vector3D V)
Distance between two vectors |
double |
distanceSquare(Vector3D V)
Description of the Method |
double |
getLength()
Gets the value attribute of the Pixel3D object |
double |
getLength(double resXY,
double resZ)
Gets the length attribute of the Vector3D object with units |
Vector3D |
getPerpendicularVector()
|
double |
intersection_unit_cube(double x,
double y,
double z,
double rx,
double ry,
double rz)
Distance traversée dans un cube (for projection computation) |
Vector3D |
multiply(double f)
multiply a vector by a scalar |
Vector3D |
multiply(double fx,
double fy,
double fz)
mumultiply the coordinates |
void |
normalize()
normalization of the vector, put length to 1.0 |
double |
scalarProduct(Vector3D Y)
scalar product between two vectors |
void |
setCoord(double x,
double y,
double z)
Sets the attributes of the Vector3D object |
java.lang.String |
toString()
display vector information |
void |
xmlWrite(java.io.Writer wr)
|
Methods inherited from class ij3d.geom.Point3D |
---|
distance, distanceSquare, getPosition, getVector3D, getX, getY, getZ, setX, setY, setZ, translate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Vector3D()
public Vector3D(float x, float y, float z)
x
- x coordinate of the vectory
- y coordinate of the vectorz
- z coordinate of the vectorpublic Vector3D(double x, double y, double z)
x
- x coordinate of the vectory
- y coordinate of the vectorz
- z coordinate of the vectorpublic Vector3D(Vector3D V)
V
- the vector to copypublic Vector3D(Point3D P)
P
- the point3D to copyMethod Detail |
---|
public void setCoord(double x, double y, double z)
x
- x coordinate of the vectory
- y coordinate of the vectorz
- z coordinate of the vectorpublic double getLength()
public double getLength(double resXY, double resZ)
resXY
- resolution in XYresZ
- resolution in Z
public double distance(Vector3D V)
V
- the other vector
public double distanceSquare(Vector3D V)
V
- Description of the Parameter
public Vector3D add(Vector3D v)
v
- the other vector
public Vector3D add(Vector3D v, float f1, float f2)
v
- the other vector V2f1
- the ratio for V1f2
- the ratio for V2
public Vector3D add(Vector3D v, double f1, double f2)
v
- Description of the Parameterf1
- Description of the Parameterf2
- Description of the Parameter
public Vector3D multiply(double f)
f
- the scalar
public Vector3D multiply(double fx, double fy, double fz)
fx
- multiplication factor for xfy
- multiplication factor for yfz
- multiplication factor for z
public double angle(Vector3D v)
v
- the other vector
public double angleDegrees(Vector3D v)
v
- the other vector
public double scalarProduct(Vector3D Y)
Y
- the other vector
public Vector3D getPerpendicularVector()
public Vector3D crossProduct(Vector3D V)
V
- the other vector
public void normalize()
public double intersection_unit_cube(double x, double y, double z, double rx, double ry, double rz)
rx
- coordonnée x du point de passagery
- coordonnée x du point de passagerz
- coordonnée x du point de passagex
- Description of the Parametery
- Description of the Parameterz
- Description of the Parameter
public java.lang.String toString()
toString
in class Point3D
public void xmlWrite(java.io.Writer wr)
xmlWrite
in class Point3D
wr
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |