Class CompositeBoundary<P>
java.lang.Object
org.episteme.core.mathematics.geometry.boundaries.CompositeBoundary<P>
- Type Parameters:
P- the point type
- All Implemented Interfaces:
Serializable, Boundary<P>
- Direct Known Subclasses:
GeoPath, GeoPolygon
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddExclusion(Boundary<P> boundary) voidaddInclusion(Boundary<P> boundary) booleanChecks if a point is contained within this boundary.Computes the convex hull of this boundary.Computes the boundary measure (perimeter/surface area).Returns the bounding box of this boundary.Returns the centroid of this boundary.intReturns the dimensionality of this boundary.Computes the measure (length/area/volume) of this boundary.intersection(Boundary<P> other) Computes the intersection of this boundary with another.booleanintersects(Boundary<P> other) Checks if this boundary intersects with another.booleanisEmpty()Checks if this boundary is empty.Creates a scaled copy of this boundary.Creates a copy of this boundary translated by a vector.Computes the union of this boundary with another.
-
Constructor Details
-
CompositeBoundary
public CompositeBoundary()
-
-
Method Details
-
addInclusion
-
addExclusion
-
getInclusions
-
getExclusions
-
getDimension
public int getDimension()Description copied from interface:BoundaryReturns the dimensionality of this boundary.- Specified by:
getDimensionin interfaceBoundary<P>- Returns:
- 0 for point, 1 for line, 2 for polygon, 3 for polyhedron
-
contains
-
isEmpty
-
getCentroid
Description copied from interface:BoundaryReturns the centroid of this boundary.- Specified by:
getCentroidin interfaceBoundary<P>- Returns:
- the geometric center
-
getBoundingBox
Description copied from interface:BoundaryReturns the bounding box of this boundary.- Specified by:
getBoundingBoxin interfaceBoundary<P>- Returns:
- an axis-aligned bounding box
-
getMeasure
Description copied from interface:BoundaryComputes the measure (length/area/volume) of this boundary. For 2D: area, for 3D: volume, for 1D: length.- Specified by:
getMeasurein interfaceBoundary<P>- Returns:
- the measure as a Real value
-
getBoundaryMeasure
Description copied from interface:BoundaryComputes the boundary measure (perimeter/surface area). For 2D: perimeter, for 3D: surface area.- Specified by:
getBoundaryMeasurein interfaceBoundary<P>- Returns:
- the boundary measure
-
intersects
-
union
-
intersection
-
convexHull
-
translate
-
scale
-