|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Used for accessing to a Point3D.
IVertex3D
Method Summary | |
IPoint3D |
add(IPoint3D p)
Add a Point3D to this Point3D. |
IPoint3D |
copy(IPoint3D point3d)
Copy values of a Point3D into this Point3D. |
IPoint3D |
cross(IPoint3D p)
Compute the cross product with another Point3D |
double |
dist(IPoint3D p)
Return the distance with the point p |
IPoint3D |
div(double n)
Divide all components (x,y,z) by n |
double |
dot(IPoint3D p2)
Compute the dot product with another Point3D |
IPoint3D |
getClone()
Gets a new instance of this Point3D. |
double |
getX()
Gets the x component. |
double |
getY()
Gets the y component. |
double |
getZ()
Gets the z component. |
double |
length()
Compute and return the length of the vector represented by this point |
double |
length2()
Compute and return the length˛ of the vector represented by this point |
IPoint3D |
mul(double n)
Multiply all components (x,y,z) by n |
double |
norm()
Compute and return the length of the vector represented by this point |
IPoint3D |
normalize()
Normalize this Point3D. |
IPoint3D |
rotateX(double angle)
Rotate the point around the x axis |
IPoint3D |
rotateY(double angle)
Rotate the point around the y axis |
IPoint3D |
rotateZ(double angle)
Rotate the point around the z axis |
void |
set(double x,
double y,
double z)
Sets the x,y,z components. |
void |
setX(double val)
Sets the x component. |
void |
setY(double val)
Sets the y component. |
void |
setZ(double val)
Sets the z component. |
IPoint3D |
sub(IPoint3D p)
Substract a Point3D to this Point3D. |
IPoint3D |
zoom(double x,
double y,
double z)
Zoom this Point3D. |
Method Detail |
public double getX()
public double getY()
public double getZ()
public void setX(double val)
val
- x component valuepublic void setY(double val)
val
- y component valuepublic void setZ(double val)
val
- z component valuepublic void set(double x, double y, double z)
x
- x component valuey
- y component valuez
- z component valuepublic IPoint3D copy(IPoint3D point3d)
point3d
- source Point3D
public IPoint3D add(IPoint3D p)
p
- source Point3D
public IPoint3D sub(IPoint3D p)
p
- source Point3D
public IPoint3D normalize()
public IPoint3D zoom(double x, double y, double z)
x
- x zoom factory
- y zoom factorz
- z zoom factor
public IPoint3D getClone()
public IPoint3D rotateX(double angle)
angle
- radian angle for the rotation
public IPoint3D rotateY(double angle)
angle
- radian angle for the rotation
public IPoint3D rotateZ(double angle)
angle
- radian angle for the rotation
public IPoint3D mul(double n)
n
- value to use for the multiplication
public IPoint3D div(double n)
n
- value to use for the division
public IPoint3D cross(IPoint3D p)
public double dot(IPoint3D p2)
public double norm()
public double length()
public double length2()
public double dist(IPoint3D p)
p
- a point
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |