|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmath.geom3d.PointSet3D
public class PointSet3D
| Field Summary |
|---|
| Fields inherited from interface math.geom3d.Shape3D |
|---|
ACCURACY |
| Constructor Summary | |
|---|---|
PointSet3D()
|
|
PointSet3D(java.util.Collection<? extends Point3D> points)
Points must be a collection of java.awt.Point. |
|
PointSet3D(int n)
Creates a new point set and allocate memory for storing the points. |
|
PointSet3D(Point3D[] points)
Instances of Point3D are directly added, other Point are converted to Point3D with the same location. |
|
| Method Summary | |
|---|---|
void |
addPoint(Point3D point)
Adds a new point to the set of point. |
void |
addPoints(java.util.Collection<Point3D> points)
|
void |
addPoints(Point3D[] points)
Add a series of points |
Box3D |
boundingBox()
|
void |
clearPoints()
Removes all points of the set. |
Shape3D |
clip(Box3D box)
|
boolean |
contains(Point3D point)
|
double |
distance(Point3D p)
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. |
java.util.Iterator<Point3D> |
getPoints()
Returns an iterator on the internal point collection. |
boolean |
isBounded()
Returns true if the shape is bounded, that is if we can draw a finite rectangle enclosing the shape. |
boolean |
isEmpty()
|
java.util.Iterator<Point3D> |
iterator()
|
int |
pointNumber()
Returns the number of points in the set. |
Shape3D |
transform(AffineTransform3D trans)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PointSet3D()
public PointSet3D(int n)
n - the number of points to storepublic PointSet3D(Point3D[] points)
public PointSet3D(java.util.Collection<? extends Point3D> points)
points - | Method Detail |
|---|
public void addPoint(Point3D point)
point - public void addPoints(Point3D[] points)
points - an array of pointspublic void addPoints(java.util.Collection<Point3D> points)
public java.util.Iterator<Point3D> getPoints()
public void clearPoints()
public int pointNumber()
public Shape3D clip(Box3D box)
clip in interface Shape3Dpublic Box3D boundingBox()
boundingBox in interface Shape3Dpublic double distance(Point3D p)
Shape3D
distance in interface Shape3Dpublic boolean contains(Point3D point)
contains in interface Shape3Dpublic boolean isEmpty()
isEmpty in interface Shape3Dpublic boolean isBounded()
Shape3D
isBounded in interface Shape3Dpublic Shape3D transform(AffineTransform3D trans)
transform in interface Shape3Dpublic java.util.Iterator<Point3D> iterator()
iterator in interface java.lang.Iterable<Point3D>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||