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