|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object math.geom3d.Point3D
public class Point3D
Field Summary |
---|
Fields inherited from interface math.geom3d.Shape3D |
---|
ACCURACY |
Constructor Summary | |
---|---|
Point3D()
Initialize at coordinate (0,0,0). |
|
Point3D(double x,
double y,
double z)
|
Method Summary | |
---|---|
Box3D |
boundingBox()
|
Shape3D |
clip(Box3D box)
Returns the clipped point, or null if empty. |
boolean |
contains(Point3D point)
A point 'contains' another point if their euclidean distance is less than the accuracy. |
double |
distance(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. |
boolean |
equals(java.lang.Object obj)
|
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()
|
Point3D |
transform(AffineTransform3D trans)
|
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Point3D()
public Point3D(double x, double y, double z)
Method Detail |
---|
public double getX()
public double getY()
public double getZ()
public double distance(Point3D point)
Shape3D
distance
in interface Shape3D
public boolean contains(Point3D point)
contains
in interface Shape3D
public boolean isEmpty()
isEmpty
in interface Shape3D
public boolean isBounded()
Shape3D
isBounded
in interface Shape3D
public Box3D boundingBox()
boundingBox
in interface Shape3D
public Shape3D clip(Box3D box)
clip
in interface Shape3D
public Point3D transform(AffineTransform3D trans)
transform
in interface Shape3D
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |