public class Point3D extends Object implements Shape3D
Immutable.
Shape3D.EmptySet3DACCURACY, ACCURACY_INVERSE, EMPTY_SET| Constructor and Description |
|---|
Point3D()
Initialize at coordinate (0,0,0).
|
Point3D(double x,
double y,
double z) |
Point3D(javax.vecmath.Tuple3d point) |
Point3D(Vector3D vector) |
| 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 |
getDistanceSquare(Point3D point) |
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 |
minus(Vector3D vector) |
Point3D |
plus(Vector3D vector) |
void |
setLocation(double x,
double y,
double z)
Deprecated.
Point3D shall be immutable
|
void |
setLocation(Point3D point)
Deprecated.
Point3D shall be immutable
|
void |
setX(double x)
Deprecated.
Point3D shall be immutable
|
void |
setY(double y)
Deprecated.
Point3D shall be immutable
|
void |
setZ(double z)
Deprecated.
Point3D shall be immutable
|
String |
toString() |
Point3D |
transform(AffineTransform3D trans) |
public Point3D()
public Point3D(double x,
double y,
double z)
public Point3D(javax.vecmath.Tuple3d point)
public Point3D(Vector3D vector)
public double getX()
public double getY()
public double getZ()
@Deprecated public void setX(double x)
@Deprecated public void setY(double y)
@Deprecated public void setZ(double z)
@Deprecated public void setLocation(Point3D point)
@Deprecated public void setLocation(double x, double y, double z)
public double getDistance(Point3D point)
Shape3DgetDistance in interface Shape3Dpublic double getDistanceSquare(Point3D point)
public boolean contains(Point3D point)
public boolean isBounded()
Shape3Dpublic Box3D getBoundingBox()
getBoundingBox in interface Shape3Dpublic Point3D transform(AffineTransform3D trans)
Copyright © 2019 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All rights reserved.