|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A d-dimensional manifold embedded in n-dimensional euclidean space. This is used to define the geometry of a cell in a geometric complex. The geometry of a cell of dimension d contains all information necessary to embed this cell into n-dimensional space. The geometries of the boundary-cells will completely determine the shape of the cell.
Method Summary | |
AffineSpace |
affineClosure()
Computes the smallest affine space, which contains this geometry |
boolean |
canBeContainedIn(Geometry other)
Tests, if this geometry knows how to test if is contained in another geometry. |
boolean |
canContain(Geometry other)
Tests, if this geometry knows how to test if it contains another geometry. |
boolean |
canIntersect(Geometry other)
Tests, if this geometry knows how to intersect itself with another geometry. |
boolean |
contains(Geometry other)
Tests, if this geometry contains another geometry. |
int |
dim()
Returns the dimension of this geometry. |
Vector |
getNormal(Point p)
Returns a normal vector onto a hypersurface in a given point (only possible if dim()+1 == outerDim() ) |
Point |
getOrigin()
The origin of the local coordinate system. |
Geometry |
getRandomRay(Point origin)
Construct a random one-dimensional submanifold, containing a given point. |
Geometry |
intersection(Geometry other)
Intersects this geometry with another. |
boolean |
isContainedIn(Geometry other)
Tests, if this geometry is contained in another geometry. |
Point |
localization(Point p)
Converts a point (which is contained in the geometry) to coordinates local to the geometry. |
int |
outerDim()
Returns the dimension of the euclidean space containing this geometry. |
java.awt.Shape |
toShape(java.awt.geom.AffineTransform transform)
Returns the cell as Shape (only possible for 2-dimensional Complexes). |
Method Detail |
public int dim()
public int outerDim()
public AffineSpace affineClosure()
public java.awt.Shape toShape(java.awt.geom.AffineTransform transform)
public Vector getNormal(Point p)
dim()+1 == outerDim()
)
p
- the starting point of the normal vector
public boolean canContain(Geometry other)
other
- another geometry
contains
will workpublic boolean contains(Geometry other)
canContain
returns false.
other
- another geometry
other
is contained in the geometry.public boolean canBeContainedIn(Geometry other)
other
- another geometry
isContainedIn
will workpublic boolean isContainedIn(Geometry other)
canBeContainedIn
returns false.
other
- another geometry
other
.public boolean canIntersect(Geometry other)
other
- another geometry, which is to be intersected
public Geometry intersection(Geometry other)
canIntersect
returns false.
other
- another geometry, which is to be intersected
public Point localization(Point p)
dim()
coordinates.
The dimension of this geometry has to be nonzero.
p
- a point contained in this geometry
public Point getOrigin()
public Geometry getRandomRay(Point origin)
origin
- a point contained in this geometry
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |