|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectframs_client_3d.Point3D
Three dimensional point class.
| Field Summary | |
private float[] |
p
|
| Constructor Summary | |
Point3D(float[] point)
Defualt parametrized constructor. |
|
Point3D(float px,
float py,
float pz)
Defualt parametrized constructor. |
|
Point3D(Point3D point)
Copy constructor. |
|
| Method Summary | |
void |
add(Point3D point)
Add a point. |
void |
add(Vector3D vector)
Add a vector. |
float[] |
getPoint()
Point getter. |
Vector3D |
vector(Point3D point)
Calcultes a vector from this to given point. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private float[] p
| Constructor Detail |
public Point3D(float px,
float py,
float pz)
px - point x coordinatepy - point y coordinatepz - point z coordinatepublic Point3D(float[] point)
point - array of point coordinatespublic Point3D(Point3D point)
point - a point object| Method Detail |
public Vector3D vector(Point3D point)
point - the vector end point
public float[] getPoint()
public void add(Vector3D vector)
vector - public void add(Point3D point)
point -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||