Rect2

gdext.builtin.Rect2
See theRect2 companion object
final case class Rect2(position: Vector2, size: Vector2)

Godot's Rect2: a position and a size (16 bytes).

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 *(t: Transform2D): Rect2

Rect2 * Transform2D: the inverse transform of this rect.

Rect2 * Transform2D: the inverse transform of this rect.

Attributes

def abs: Rect2
def encloses(b: Rect2): Boolean
def end: Vector2
def expand(to: Vector2): Rect2
def getArea: Float
def getSupport(direction: Vector2): Vector2
def grow(amount: Float): Rect2
def growIndividual(left: Float, top: Float, right: Float, bottom: Float): Rect2
def growSide(side: Long, amount: Float): Rect2

side: 0 left, 1 top, 2 right, 3 bottom.

side: 0 left, 1 top, 2 right, 3 bottom.

Attributes

def hasArea: Boolean
def hasPoint(point: Vector2): Boolean
def intersects(b: Rect2, includeBorders: Boolean = ...): Boolean
def isEqualApprox(rect: Rect2): Boolean
def isFinite: Boolean
def merge(b: Rect2): Rect2

Inherited methods

def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product