BoundingBox

final case
class BoundingBox(position: Vertex, size: Vertex)
Companion
object
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

def *(d: Double): BoundingBox
def +(d: Double): BoundingBox
def -(d: Double): BoundingBox
def /(d: Double): BoundingBox
def contains(vertex: Vertex): Boolean
def contains(vector: Vector2): Boolean
def contains(x: Double, y: Double): Boolean
def contract(amount: Double): BoundingBox
def distanceToBoundary(vertex: Vertex): Double
def distanceToBoundary(vector: Vector2): Double
def encompasses(other: BoundingBox): Boolean
def expand(amount: Double): BoundingBox
def lineIntersects(line: LineSegment): Boolean
def lineIntersectsAt(line: LineSegment): Option[Vertex]
def moveBy(amount: Vertex): BoundingBox
def moveBy(x: Double, y: Double): BoundingBox
def moveBy(amount: Vector2): BoundingBox
def moveTo(newPosition: Vertex): BoundingBox
def moveTo(x: Double, y: Double): BoundingBox
def moveTo(newPosition: Vector2): BoundingBox
def overlaps(other: BoundingBox): Boolean
def resize(newSize: Vertex): BoundingBox
def resize(newSize: Vector2): BoundingBox
def sdf(vertex: Vertex): Double
def sdf(vector: Vector2): Double
def ~==(other: BoundingBox): Boolean

Inherited methods

def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product

Concrete fields

lazy
val bottom: Double
lazy
lazy
lazy
val corners: List[Vertex]
lazy
lazy
val height: Double
lazy
val horizontalCenter: Double
lazy
val left: Double
lazy
val right: Double
lazy
val top: Double
lazy
lazy
lazy
val verticalCenter: Double
lazy
val width: Double
lazy
val x: Double
lazy
val y: Double