module

Rosegold::AABB(T, V)

axis aligned bounding box

Constructors

new(min : V, max : V)
Source

Instance methods

*(other : T) : self
Source
[](i) : V
Source
contains?(vec : V) : Bool
Source
grow(dx : T, dy : T, dz : T) : self
Source
grow(aabb : AABB(T, V)) : self
Source
grow(vec : V) : self
Source
intersects?(other : AABB(T, V)) : Bool
Source
offset(x : T, y : T, z : T) : self
Source
offset(vec : V) : self
Source
ray_intersection(start : V, end_ : V) : Float64 | Nil
Source