Class PointBoundary<P>
java.lang.Object
org.episteme.core.mathematics.geometry.boundaries.PointBoundary<P>
- Type Parameters:
P- the point type
- All Implemented Interfaces:
Serializable, Boundary<P>
A zero-dimensional boundary representing a single point.
This is useful for representing exact locations, point-of-interest, or degenerate boundaries.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionPointBoundary(P point) Creates a point boundary with zero tolerance.PointBoundary(P point, Real tolerance) Creates a point boundary with a tolerance radius. -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks if a point is contained within this boundary.Computes the convex hull of this boundary.booleanComputes 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.getPoint()Returns the point.Returns the tolerance radius.inthashCode()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.static PointBoundary<Point2D> Creates a 2D point boundary.static PointBoundary<Point2D> Creates a 2D point boundary with tolerance.static PointBoundary<Point3D> Creates a 3D point boundary.static PointBoundary<Point3D> Creates a 3D point boundary with tolerance.Creates a scaled copy of this boundary.toString()Creates a copy of this boundary translated by a vector.Computes the union of this boundary with another.
-
Constructor Details
-
PointBoundary
Creates a point boundary with zero tolerance.- Parameters:
point- the point
-
PointBoundary
-
-
Method Details
-
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
-
getPoint
-
getTolerance
-
equals
-
hashCode
-
toString
-
of2D
Creates a 2D point boundary. -
of2D
Creates a 2D point boundary with tolerance. -
of3D
Creates a 3D point boundary. -
of3D
-