module Rosegold::AABB(T, V)

Overview

axis aligned bounding box

Direct including types

Defined in:

rosegold/world/aabb.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(min : V, max : V) #

[View source]

Instance Method Detail

def *(scalar : T) : self #

[View source]
def [](i) : V #

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

[View source]
def grow(dx : T, dy : T, dz : T) : self #

[View source]
def grow(aabb : AABB(T, V)) : self #

[View source]
def grow(vec : V) : self #

[View source]
def intersects?(other : AABB(T, V)) : Bool #

[View source]
def max : V #

[View source]
def min : V #

[View source]
def offset(x : T, y : T, z : T) : self #

[View source]
def offset(vec : V) : self #

[View source]
def ray_intersection(start : V, end_ : V) : Float64 | Nil #

[View source]