BoundingBox

Represents a rectangle in a 2-dimensional space

Constructors

Link copied to clipboard
constructor(left: Int, top: Int, right: Int, bottom: Int)
constructor(rect: Rect)
constructor(previewView: PreviewView)
constructor()
constructor(resolution: Size)
constructor(rectF: RectF)

Properties

Link copied to clipboard
val area: Int
Link copied to clipboard
var bottom: Int

Position of the bottom of the box

Link copied to clipboard
val height: Int
Link copied to clipboard
var left: Int

The position of the left side of the box

Link copied to clipboard
var right: Int

Position of the right side of the box

Link copied to clipboard
var top: Int

Position of the top of the box

Link copied to clipboard
val width: Int

Functions

Link copied to clipboard

Checks if another bounding box is contained in this bounding box

Link copied to clipboard

Checks if another bounding box is not centered in this bounding box

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun toString(): String

Creates a string representation of the bounding box