public class TileBoundingBoxAndroidUtils extends Object
| Constructor and Description |
|---|
TileBoundingBoxAndroidUtils() |
| Modifier and Type | Method and Description |
|---|---|
static RectF |
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
|
static Rect |
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
|
static RectF |
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
|
static boolean |
isValid(Rect rect)
Check if the rectangle is valid
|
static boolean |
isValid(RectF rectF)
Check if the rectangle is valid
|
static boolean |
isValidAllowEmpty(Rect rect)
Check if the rectangle is valid allowing empty ranges
|
static boolean |
isValidAllowEmpty(RectF rectF)
Check if the rectangle is valid allowing empty ranges
|
public static Rect getRectangle(long width, long height, BoundingBox boundingBox, BoundingBox boundingBoxSection)
width - widthheight - heightboundingBox - full bounding boxboundingBoxSection - rectangle bounding box sectionpublic static RectF getRoundedFloatRectangle(long width, long height, BoundingBox boundingBox, BoundingBox boundingBoxSection)
width - widthheight - heightboundingBox - full bounding boxboundingBoxSection - rectangle bounding box sectionpublic static RectF getFloatRectangle(long width, long height, BoundingBox boundingBox, BoundingBox boundingBoxSection)
width - widthheight - heightboundingBox - full bounding boxboundingBoxSection - rectangle bounding box sectionpublic static boolean isValid(Rect rect)
rect - rectanglepublic static boolean isValidAllowEmpty(Rect rect)
rect - rectanglepublic static boolean isValid(RectF rectF)
rectF - rectanglepublic static boolean isValidAllowEmpty(RectF rectF)
rectF - rectangle