|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.math3.geometry.partitioning.RegionFactory<S>
S
- Type of the space.public class RegionFactory<S extends Space>
This class is a factory for Region
.
Constructor Summary | |
---|---|
RegionFactory()
Simple constructor. |
Method Summary | |
---|---|
Region<S> |
buildConvex(Hyperplane<S>... hyperplanes)
Build a convex region from a collection of bounding hyperplanes. |
Region<S> |
difference(Region<S> region1,
Region<S> region2)
Compute the difference of two regions. |
Region<S> |
getComplement(Region<S> region)
Get the complement of the region (exchanged interior/exterior). |
Region<S> |
intersection(Region<S> region1,
Region<S> region2)
Compute the intersection of two regions. |
Region<S> |
union(Region<S> region1,
Region<S> region2)
Compute the union of two regions. |
Region<S> |
xor(Region<S> region1,
Region<S> region2)
Compute the symmetric difference (exclusive or) of two regions. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RegionFactory()
Method Detail |
---|
public Region<S> buildConvex(Hyperplane<S>... hyperplanes)
hyperplanes
- collection of bounding hyperplanes
public Region<S> union(Region<S> region1, Region<S> region2)
region1
- first region (will be unusable after the operation as
parts of it will be reused in the new region)region2
- second region (will be unusable after the operation as
parts of it will be reused in the new region)
region1 union region2
public Region<S> intersection(Region<S> region1, Region<S> region2)
region1
- first region (will be unusable after the operation as
parts of it will be reused in the new region)region2
- second region (will be unusable after the operation as
parts of it will be reused in the new region)
region1 intersection region2
public Region<S> xor(Region<S> region1, Region<S> region2)
region1
- first region (will be unusable after the operation as
parts of it will be reused in the new region)region2
- second region (will be unusable after the operation as
parts of it will be reused in the new region)
region1 xor region2
public Region<S> difference(Region<S> region1, Region<S> region2)
region1
- first region (will be unusable after the operation as
parts of it will be reused in the new region)region2
- second region (will be unusable after the operation as
parts of it will be reused in the new region)
region1 minus region2
public Region<S> getComplement(Region<S> region)
region
- region to complement, it will not modified, a new
region independent region will be built
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |