BoundingBox

indigo.shared.geometry.BoundingBox
See theBoundingBox companion object
final case class BoundingBox(position: Vertex, size: Vertex)

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def *(rect: BoundingBox): BoundingBox
def *(d: Double): BoundingBox
def +(rect: BoundingBox): BoundingBox
def +(d: Double): BoundingBox
def -(rect: BoundingBox): BoundingBox
def -(d: Double): BoundingBox
def /(rect: BoundingBox): 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 expand(amount: Double): BoundingBox
def moveBy(amount: Vertex): BoundingBox
def moveBy(amount: Vector2): BoundingBox
def moveTo(newPosition: Vertex): BoundingBox
def moveTo(newPosition: Vector2): BoundingBox

Reflects the incoming 'ray' off of the BoundingBox

Reflects the incoming 'ray' off of the BoundingBox

Attributes

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

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product

Concrete fields

lazy val bottom: Double
lazy val bottomLeft: Vertex
lazy val bottomRight: Vertex
lazy val center: Vertex
lazy val corners: Batch[Vertex]
lazy val halfSize: Vertex
lazy val height: Double
lazy val left: Double
lazy val right: Double
lazy val top: Double
lazy val topLeft: Vertex
lazy val topRight: Vertex
lazy val width: Double
lazy val x: Double
lazy val y: Double