dzzd
Interface IPoint3D

All Known Subinterfaces:
IPoint4D, IVertex3D

public interface IPoint3D

Interface used for accessing to a 3D Point with x,y and z components.

Since:
1.0
Version:
1.0, 01/01/04
Author:
Bruno Augier
See Also:
IVertex3D

Method Summary
 IPoint3D add(IPoint3D p)
          Add values of a Point3D to this Point3D
 IPoint3D copy(IPoint3D point3d)
          Copy values of a Point3D into this Point3D
 IPoint3D getCopy()
           
 double getX()
          Get the x component.
 double getY()
          Get the y component.
 double getZ()
          Get the z component.
 IPoint3D normalize()
           
 void set(double x, double y, double z)
          Set the x,y,z components.
 void setX(double val)
          Set the x component.
 void setY(double val)
          Set the y component.
 void setZ(double val)
          Set the z component.
 IPoint3D sub(IPoint3D p)
           
 

Method Detail

getX

public double getX()
Get the x component.

Returns:
x component
Since:
1.0

getY

public double getY()
Get the y component.

Returns:
y component
Since:
1.0

getZ

public double getZ()
Get the z component.

Returns:
z component
Since:
1.0

setX

public void setX(double val)
Set the x component.

Parameters:
val - x component value
Since:
1.0

setY

public void setY(double val)
Set the y component.

Parameters:
val - y component value
Since:
1.0

setZ

public void setZ(double val)
Set the z component.

Parameters:
val - z component value
Since:
1.0

set

public void set(double x,
                double y,
                double z)
Set the x,y,z components.

Parameters:
x - x component value
y - y component value
z - z component value
Since:
1.0

copy

public IPoint3D copy(IPoint3D point3d)
Copy values of a Point3D into this Point3D

Parameters:
point3d - source Point3D
Since:
1.0

add

public IPoint3D add(IPoint3D p)
Add values of a Point3D to this Point3D

Since:
1.0

sub

public IPoint3D sub(IPoint3D p)

normalize

public IPoint3D normalize()

getCopy

public IPoint3D getCopy()