public class Point3D extends Object implements Shape3D
Shape3D.EmptySet3D
Constructor and Description |
---|
Point3D()
Initialize at coordinate (0,0,0).
|
Point3D(double x,
double y,
double z) |
Point3D(javax.vecmath.Tuple3d point) |
Modifier and Type | Method and Description |
---|---|
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) |
public Point3D()
public Point3D(double x, double y, double z)
public Point3D(javax.vecmath.Tuple3d point)
public double getX()
public double getY()
public double getZ()
public void setX(double x)
public void setY(double y)
public void setZ(double z)
public void setLocation(Point3D point)
public void setLocation(double x, double y, double z)
public double getDistance(Point3D point)
Shape3D
getDistance
in interface Shape3D
public boolean contains(Point3D point)
public boolean isBounded()
Shape3D
public Box3D getBoundingBox()
getBoundingBox
in interface Shape3D
public Point3D transform(AffineTransform3D trans)
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.