frams_client_3d
Class Point3D

java.lang.Object
  extended byframs_client_3d.Point3D

public class Point3D
extends java.lang.Object

Three dimensional point class.

Author:
MoMaT

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

p

private float[] p
Constructor Detail

Point3D

public Point3D(float px,
               float py,
               float pz)
Defualt parametrized constructor.

Parameters:
px - point x coordinate
py - point y coordinate
pz - point z coordinate

Point3D

public Point3D(float[] point)
Defualt parametrized constructor.

Parameters:
point - array of point coordinates

Point3D

public Point3D(Point3D point)
Copy constructor.

Parameters:
point - a point object
Method Detail

vector

public Vector3D vector(Point3D point)
Calcultes a vector from this to given point.

Parameters:
point - the vector end point
Returns:
a vector

getPoint

public float[] getPoint()
Point getter.

Returns:
array of point coordinates

add

public void add(Vector3D vector)
Add a vector.

Parameters:
vector -

add

public void add(Point3D point)
Add a point.

Parameters:
point -