math.geom3d
Class Point3D

Package class diagram package Point3D
java.lang.Object
  extended by math.geom3d.Point3D
All Implemented Interfaces:
Serializable, Shape3D

public class Point3D
extends Object
implements Shape3D

Author:
dlegland
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface math.geom3d.Shape3D
Shape3D.EmptySet3D
 
Field Summary
 
Fields inherited from interface math.geom3d.Shape3D
ACCURACY, EMPTY_SET
 
Constructor Summary
Point3D()
          Initialize at coordinate (0,0,0).
Point3D(double x, double y, double z)
           
Point3D(javax.vecmath.Tuple3d point)
           
 
Method Summary
 Shape3D clip(Box3D box)
           
 boolean contains(Point3D point)
          A point 'contains' another point if their euclidean distance is less than the accuracy.
 boolean equals(Object obj)
           
 Box3D getBoundingBox()
           
 double getDistance(Point3D point)
          Gets 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()
           
 boolean isBounded()
          Returns true if the shape is bounded, that is if we can draw a finite rectangle enclosing the shape.
 boolean isEmpty()
           
 void setLocation(double x, double y, double z)
           
 void setLocation(Point3D point)
           
 void setX(double x)
           
 void setY(double y)
           
 void setZ(double z)
           
 Point3D transform(AffineTransform3D trans)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Point3D

public Point3D()
Initialize at coordinate (0,0,0).


Point3D

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

Point3D

public Point3D(javax.vecmath.Tuple3d point)
Method Detail

getX

public double getX()

getY

public double getY()

getZ

public double getZ()

setX

public void setX(double x)

setY

public void setY(double y)

setZ

public void setZ(double z)

setLocation

public void setLocation(Point3D point)

setLocation

public void setLocation(double x,
                        double y,
                        double z)

getDistance

public double getDistance(Point3D point)
Description copied from interface: Shape3D
Gets 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.

Specified by:
contains in interface Shape3D

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Shape3D

isBounded

public boolean isBounded()
Description copied from interface: Shape3D
Returns true if the shape is bounded, that is if we can draw a finite rectangle enclosing the shape. For example, a straight line or a parabola are not bounded.

Specified by:
isBounded in interface Shape3D

getBoundingBox

public Box3D getBoundingBox()
Specified by:
getBoundingBox in interface Shape3D

clip

public Shape3D clip(Box3D box)
Specified by:
clip in interface Shape3D

transform

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

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2015 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.