struct Godot::AABB

Overview

An axis-aligned bounding box in 3D space with 32-bit floating point precision.

Defined in:

libgodot/types/aabb.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(x : Number, y : Number, z : Number, width : Number, height : Number, depth : Number) #

def self.new(position : Vector3 = Vector3.new, size : Vector3 = Vector3.new) #

def self.new(pointer : Pointer(Void)) #

Instance Method Detail

def !=(other : AABB) : Bool #

def ==(other : AABB) : Bool #

def abs : AABB #

def encloses(other : AABB) : Bool #

def encloses?(other : AABB) : Bool #

def end : Vector3 #

def end=(value : Vector3) #

def expand(to_point : Vector3) : AABB #

def grow(by : Number) : AABB #

def has_point(point : Vector3) : Bool #

def has_point?(point : Vector3) : Bool #

def has_surface? : Bool #

def has_volume? : Bool #

def intersection(other : AABB) : AABB #

def intersects(other : AABB) : Bool #

def intersects?(other : AABB) : Bool #

def is_equal_approx(other : AABB) : Bool #

def merge(other : AABB) : AABB #

def position : Vector3 #

def position=(position : Vector3) #

def size : Vector3 #

def size=(size : Vector3) #

def to_s(io : IO) : Void #
Description copied from struct Struct

Same as #inspect(io).


def volume : Float32 #