struct Boleite::Rect(Type)

Defined in:

boleite/math/rect.cr

Constant Summary

TYPE = Type

Constructors

Instance Method Summary

Constructor Detail

def self.new(left : Type, top : Type, width : Type, height : Type) #

[View source]
def self.new(pos, size) #

[View source]
def self.new(vec) #

[View source]
def self.new #

[View source]

Instance Method Detail

def bounds #

[View source]
def contains?(x, y) : Bool #

[View source]
def contains?(point) : Bool #

[View source]
def expand(amount) #

[View source]
def height #

[View source]
def height=(height : Type) #

[View source]
def intersects?(other) : Rect(Type) | Bool #

[View source]
def left #

[View source]
def left=(left : Type) #

[View source]
def merge(rect) #

[View source]
def merge_relative(rect) #

[View source]
def shrink(amount) #

[View source]
def to_f #

[View source]
def to_f32 #

[View source]
def to_f64 #

[View source]
def to_i #

[View source]
def to_i16 #

[View source]
def to_i32 #

[View source]
def to_i64 #

[View source]
def to_i8 #

[View source]
def to_u #

[View source]
def to_u16 #

[View source]
def to_u32 #

[View source]
def to_u64 #

[View source]
def to_u8 #

[View source]
def top #

[View source]
def top=(top : Type) #

[View source]
def width #

[View source]
def width=(width : Type) #

[View source]