struct AABB

Included Modules

Extended Modules

Defined in:

engine/aabb.cr
gui/general.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(v0 : Vector2, size : Vector2) #

[View source]

Class Method Detail

def self.use_fast_cannon? #

Magic method to mark this structure as being fast en-/decodable.


[View source]

Instance Method Detail

def bottom #

[View source]
def bottomleft #

[View source]
def bottomright #

[View source]
def center #

[View source]
def clone #

[View source]
def copy_with(v0 _v0 = @v0, size _size = @size) #

[View source]
def cut(dv) #

[View source]
def height #

[View source]
def includes?(vector) #

[View source]
def left #

[View source]
def right #

[View source]
def size : Vector2 #

def top #

[View source]
def topleft #

[View source]
def topright #

[View source]
def v0 : Vector2 #

def width #

[View source]