struct Graphene::Box

Overview

A 3D box, described as the volume between a minimum and a maximum vertices.

Defined in:

lib/gi-crystal/src/auto/graphene-1.0/box.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(pointer : Pointer(Void), transfer : GICrystal::Transfer) #

def self.new(data : LibGraphene::Box, _transfer : GICrystal::Transfer) #

def self.new(min : Graphene::Vec3? = nil, max : Graphene::Vec3? = nil) #

Class Method Detail

def self.empty : Graphene::Box #

def self.g_type : UInt64 #

Returns the type id (GType) registered in GLib type system.


def self.infinite : Graphene::Box #

def self.minus_one : Graphene::Box #

def self.one : Graphene::Box #

def self.one_minus_one : Graphene::Box #

def self.zero : Graphene::Box #

Instance Method Detail

def ==(other : self) : Bool #

def bounding_sphere : Graphene::Sphere #

def center : Graphene::Point3D #

def contains_box(b : Graphene::Box) : Bool #

def contains_point(point : Graphene::Point3D) : Bool #

def depth : Float32 #

def equal(b : Graphene::Box) : Bool #

def expand(point : Graphene::Point3D) : Graphene::Box #

def expand_scalar(scalar : Float32) : Graphene::Box #

def expand_vec3(vec : Graphene::Vec3) : Graphene::Box #

def free : Nil #

def height : Float32 #

def init(min : Graphene::Point3D?, max : Graphene::Point3D?) : Graphene::Box #

def init_from_box(src : Graphene::Box) : Graphene::Box #

def init_from_points(points : Enumerable(Graphene::Point3D)) : Graphene::Box #

def init_from_points(*points : Graphene::Point3D) #

def init_from_vec3(min : Graphene::Vec3?, max : Graphene::Vec3?) : Graphene::Box #

def init_from_vectors(vectors : Enumerable(Graphene::Vec3)) : Graphene::Box #

def init_from_vectors(*vectors : Graphene::Vec3) #

def intersection(b : Graphene::Box) : Graphene::Box #

def max : Graphene::Point3D #

def max(*args, **options) #

def max(*args, **options, &) #

def max=(arg) #

def min : Graphene::Point3D #

def min(*args, **options) #

def min(*args, **options, &) #

def min=(arg) #

def size : Graphene::Vec3 #

def union(b : Graphene::Box) : Graphene::Box #

def vertices(vertices : Enumerable(Graphene::Vec3)) : Nil #

def vertices(*vertices : Graphene::Vec3) #

def width : Float32 #