class OpenGL::Box2

Defined in:

opengl/math/box2.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(min = nil, max = nil) #

[View source]

Instance Method Detail

def ==(box) #
Description copied from class Reference

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


[View source]
def center(target = OpenGL::Vector2.new) #

[View source]
def clamp_point(point, target = nil) #

[View source]
def clone #

[View source]
def contains_box?(box : Box2) #

[View source]
def contains_point?(point) #

[View source]
def copy(box) #

[View source]
def distance_to_point(point) #

[View source]
def empty? #

[View source]
def expand_by_point(point) #

[View source]
def expand_by_scalar(scalar) #

[View source]
def expand_by_vector(vector) #

[View source]
def intersect(box) #

[View source]
def intersection_box?(box : Box2) #

[View source]
def make_empty #

[View source]
def max : OpenGL::Vector2 #

[View source]
def max=(max : OpenGL::Vector2) #

[View source]
def min : OpenGL::Vector2 #

[View source]
def min=(min : OpenGL::Vector2) #

[View source]
def parameter(point, target = OpenGL::Vector2.new) #

[View source]
def set(min : Vector2, max : Vector2) #

[View source]
def set_from_center_and_size(center, size) #

[View source]
def set_from_points(points) #

[View source]
def size(target = OpenGL::Vector2.new) #

[View source]
def translate(offset) #

[View source]
def union(box) #

[View source]