Class BoundarySourceBoundsBuilder2D
- java.lang.Object
-
- org.apache.commons.geometry.euclidean.twod.BoundarySourceBoundsBuilder2D
-
final class BoundarySourceBoundsBuilder2D extends java.lang.ObjectClass used to constructBounds2Dinstances representing the min and max points present in aBoundarySource2D. The implementation examines the vertices of each boundary in turn. Null is returned if any boundaries are infinite or no vertices are present.
-
-
Constructor Summary
Constructors Constructor Description BoundarySourceBoundsBuilder2D()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Bounds2DgetBounds(BoundarySource2D src)Get aBounds2Dinstance containing all vertices in the given boundary source.
-
-
-
Method Detail
-
getBounds
public Bounds2D getBounds(BoundarySource2D src)
Get aBounds2Dinstance containing all vertices in the given boundary source. Null is returned if any encountered boundaries were not finite or no vertices were found.- Parameters:
src- boundary source to compute the bounds of- Returns:
- the bounds of the argument or null if no valid bounds could be determined
-
-