Class TileBoundingBoxJavaUtils


  • public class TileBoundingBoxJavaUtils
    extends Object
    Tile Bounding Box utility methods for the Java specific library
    Author:
    osbornb
    • Constructor Detail

      • TileBoundingBoxJavaUtils

        public TileBoundingBoxJavaUtils()
    • Method Detail

      • getRectangle

        public static ImageRectangle getRectangle​(long width,
                                                  long height,
                                                  BoundingBox boundingBox,
                                                  BoundingBox boundingBoxSection)
        Get a rectangle using the tile width, height, bounding box, and the bounding box section within the outer box to build the rectangle from
        Parameters:
        width - width
        height - height
        boundingBox - full bounding box
        boundingBoxSection - rectangle bounding box section
        Returns:
        rectangle
        Since:
        1.2.0
      • getRoundedFloatRectangle

        public static ImageRectangleF getRoundedFloatRectangle​(long width,
                                                               long height,
                                                               BoundingBox boundingBox,
                                                               BoundingBox boundingBoxSection)
        Get a rectangle with rounded floating point boundaries using the tile width, height, bounding box, and the bounding box section within the outer box to build the rectangle from
        Parameters:
        width - width
        height - height
        boundingBox - full bounding box
        boundingBoxSection - rectangle bounding box section
        Returns:
        floating point rectangle
        Since:
        1.2.0
      • getFloatRectangle

        public static ImageRectangleF getFloatRectangle​(long width,
                                                        long height,
                                                        BoundingBox boundingBox,
                                                        BoundingBox boundingBoxSection)
        Get a rectangle with floating point boundaries using the tile width, height, bounding box, and the bounding box section within the outer box to build the rectangle from
        Parameters:
        width - width
        height - height
        boundingBox - full bounding box
        boundingBoxSection - rectangle bounding box section
        Returns:
        floating point rectangle
        Since:
        1.2.0