Class BoundarySourceBoundsBuilder2D


  • final class BoundarySourceBoundsBuilder2D
    extends java.lang.Object
    Class used to construct Bounds2D instances representing the min and max points present in a BoundarySource2D. The implementation examines the vertices of each boundary in turn. Null is returned if any boundaries are infinite or no vertices are present.
    • Constructor Detail

      • BoundarySourceBoundsBuilder2D

        BoundarySourceBoundsBuilder2D()
    • Method Detail

      • getBounds

        public Bounds2D getBounds​(BoundarySource2D src)
        Get a Bounds2D instance 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