Tres::Box2
Inherits Reference < Object
Constructors
new(min = nil, max = nil)
SourceInstance methods
center(target = Tres::Vector2.new)
Sourceclamp_point(point, target = nil)
Sourceclone
Sourcecontains_box?(box : Box2)
Sourcecontains_point?(point)
Sourcecopy(box)
Sourcedistance_to_point(point)
Sourceempty?
Sourceexpand_by_point(point)
Sourceexpand_by_scalar(scalar)
Sourceexpand_by_vector(vector)
Sourceintersect(box)
Sourceintersection_box?(box : Box2)
Sourcemake_empty
Sourcemax
Sourcemax=(max : Tres::Vector2)
Sourcemin
Sourcemin=(min : Tres::Vector2)
Sourceparameter(point, target = Tres::Vector2.new)
Sourceset(min : Vector2, max : Vector2)
Sourceset_from_center_and_size(center, size)
Sourceset_from_points(points)
Sourcesize(target = Tres::Vector2.new)
Sourcetranslate(offset)
Sourceunion(box)
Source