|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectgeometry.AffineSpace
An affine subspace of n-dimensional space. This is modelled by a point, and a matrix defining the associated vectorspace.
Affine spaces are the n-dimensional analogon to points, lines and planes in 3-space. The intersection of two affine spaces will again be an affine space (if it is not empty).
| Field Summary | |
protected Point |
origin
any point, which is contained in the affine space |
protected JLinAlg.Matrix |
space
a matrix, which contains the generators of the associated vectorspace as column-vectors |
| Constructor Summary | |
protected |
AffineSpace(JLinAlg.AffineLinearSubspace s)
Converts an AffineLinearSubspace-object to an
affineSpace |
|
AffineSpace(Point origin)
Constructs a 0-dimensional affine space containig only the given point. |
protected |
AffineSpace(Point origin,
JLinAlg.Matrix space)
Constructs an affine space from a Point in the affine space and a Matrix describing the associated vectorspace. |
|
AffineSpace(Point origin,
Vector[] vectors)
Constructs an affine space from a Point in the affine space and a set of vectors, generating the associated vectorspace. |
protected |
AffineSpace(JLinAlg.Vector origin,
JLinAlg.Matrix space)
Constructs an affine space from a Point in the affine space (given as a vector) and a Matrix describing the associated vectorspace. |
| Method Summary | |
void |
add(AffineSpace other)
Enlarges this affine space, so that it will also contain another affine space. |
void |
add(Vector vector)
Adds a vector to the set of generators of the associated vectorspace. |
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)
Checks, if a given point is contained in this affine space. |
boolean |
contains(Vector vector)
Checks, if a given vector is contained the associated vector space. |
AffineSpace |
copy()
Returns a deep copy of this affine space |
int |
dim()
The dimension of this affine space |
Vector |
getGenerator(int i)
Returns one of the generators of the associated vector space |
Vector |
getNormal(Point p)
Returns a normal vector onto a hypersurface in a given point (only possible if dim()+1 == outerDim()) |
Point |
getOrigin()
Returns the origin of this affine space. |
Geometry |
getRandomRay(Point origin)
Construct a random one-dimensional submanifold, containing a given point. |
Geometry |
intersection(Geometry geo)
Computes the intersection of two affine spaces. |
boolean |
isContainedIn(Geometry other)
Tests, if this geometry is contained in another geometry. |
Point |
localization(Point p)
Returns the specified point in local coordinates. |
Vector |
localization(Vector vector)
Returns the specified vector in local coordinates of the associated vector space. |
int |
outerDim()
The dimension of the space, which contains this affine space as a subspace (thus the dimension of each point contained in this subspace). |
void |
print()
Prints the origin and the set of generators of the associated vectorspace. |
Point |
project(Point p)
Computes the orthogonal projection of a point onto this affine space. |
java.awt.Shape |
toShape(java.awt.geom.AffineTransform transform)
Returns the cell as Shape (only possible for 2-dimensional Complexes). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected Point origin
protected JLinAlg.Matrix space
| Constructor Detail |
protected AffineSpace(Point origin,
JLinAlg.Matrix space)
origin - any point contained in the affine spacespace - a matrix containing the generators of the associated
vectorspace as column-vectors
protected AffineSpace(JLinAlg.Vector origin,
JLinAlg.Matrix space)
origin - a vector describing a point contained in the affine spacespace - a matrix, containing the generators of the associated
vectorspace as column-vectorsprotected AffineSpace(JLinAlg.AffineLinearSubspace s)
AffineLinearSubspace-object to an
affineSpace
s - the affine subspace
public AffineSpace(Point origin,
Vector[] vectors)
origin - any point contained in the affine spacevectors - the generators of the associated
vectorspacepublic AffineSpace(Point origin)
origin - the only point in this affine space| Method Detail |
public AffineSpace copy()
public void add(Vector vector)
vector - a new generator for the associated
vectorspacepublic void add(AffineSpace other)
other - the other affine spacepublic int dim()
dim in interface Geometrypublic int outerDim()
outerDim in interface Geometrypublic Point getOrigin()
getOrigin in interface Geometrypublic Vector getGenerator(int i)
i - the index of a generator
public void print()
public boolean contains(Vector vector)
vector - a vector
public boolean contains(Geometry other)
contains in interface Geometryother - another geometry
public Vector localization(Vector vector)
vector - a vector which must be contained in the associated vector space
public Point localization(Point p)
localization in interface Geometryp - a point which must lie in this space
public Point project(Point p)
p - a point
public AffineSpace affineClosure()
Geometry
affineClosure in interface Geometrypublic boolean canIntersect(Geometry other)
Geometry
canIntersect in interface Geometryother - another geometry, which is to be intersected
public Geometry intersection(Geometry geo)
intersection in interface Geometrygeo - another geometry, which is to be intersected
public boolean canContain(Geometry other)
Geometry
canContain in interface Geometryother - another geometry
contains will workpublic boolean canBeContainedIn(Geometry other)
Geometry
canBeContainedIn in interface Geometryother - another geometry
isContainedIn will workpublic boolean isContainedIn(Geometry other)
GeometrycanBeContainedIn returns false.
isContainedIn in interface Geometryother - another geometry
other.public Geometry getRandomRay(Point origin)
Geometry
getRandomRay in interface Geometryorigin - a point contained in this geometry
public java.awt.Shape toShape(java.awt.geom.AffineTransform transform)
Geometry
toShape in interface Geometrypublic Vector getNormal(Point p)
Geometrydim()+1 == outerDim())
getNormal in interface Geometryp - the starting point of the normal vector
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||