class

Tres::Box2

Inherits Reference < Object

Constructors

new(min = nil, max = nil)
Source

Instance methods

==(box)

Returns false (other can only be a Value here).

Source
center(target = Tres::Vector2.new)
Source
clamp_point(point, target = nil)
Source
clone
Source
contains_box?(box : Box2)
Source
contains_point?(point)
Source
copy(box)
Source
distance_to_point(point)
Source
empty?
Source
expand_by_point(point)
Source
expand_by_scalar(scalar)
Source
expand_by_vector(vector)
Source
intersect(box)
Source
intersection_box?(box : Box2)
Source
make_empty
Source
parameter(point, target = Tres::Vector2.new)
Source
set(min : Vector2, max : Vector2)
Source
set_from_center_and_size(center, size)
Source
set_from_points(points)
Source
size(target = Tres::Vector2.new)
Source
translate(offset)
Source
union(box)
Source