math.geom3d
Class Point3D

java.lang.Object
  extended by math.geom3d.Point3D
All Implemented Interfaces:
Shape3D

public class Point3D
extends java.lang.Object
implements Shape3D

Author:
dlegland

Field Summary
 
Fields inherited from interface math.geom3d.Shape3D
ACCURACY
 
Constructor Summary
Point3D()
           
Point3D(double x, double y, double z)
           
 
Method Summary
 boolean contains(Point3D point)
          A point 'contains' another point if their euclidean distance is less than the accuracy.
 double getDistance(Point3D point)
          get the distance of the shape to the given point, or the distance of point to the frontier of the shape in the case of a plain shape.
 double getX()
           
 double getY()
           
 double getZ()
           
 void setLocation(Point3D point)
           
 Shape3D transform(AffineTransform3D trans)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Point3D

public Point3D()

Point3D

public Point3D(double x,
               double y,
               double z)
Method Detail

getX

public double getX()

getY

public double getY()

getZ

public double getZ()

setLocation

public void setLocation(Point3D point)

getDistance

public double getDistance(Point3D point)
Description copied from interface: Shape3D
get the distance of the shape to the given point, or the distance of point to the frontier of the shape in the case of a plain shape.

Specified by:
getDistance in interface Shape3D

contains

public boolean contains(Point3D point)
A point 'contains' another point if their euclidean distance is less than the accuracy.


transform

public Shape3D transform(AffineTransform3D trans)
Specified by:
transform in interface Shape3D