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) #

[View source]
def self.new(data : LibGraphene::Box, _transfer : GICrystal::Transfer) #

[View source]
def self.new(min : Graphene::Vec3 | Nil = nil, max : Graphene::Vec3 | Nil = nil) #

[View source]

Class Method Detail

def self.empty : Graphene::Box #

[View source]
def self.g_type : UInt64 #

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


[View source]
def self.infinite : Graphene::Box #

[View source]
def self.minus_one : Graphene::Box #

[View source]
def self.one : Graphene::Box #

[View source]
def self.one_minus_one : Graphene::Box #

[View source]
def self.zero : Graphene::Box #

[View source]

Instance Method Detail

def ==(other : self) : Bool #

[View source]
def bounding_sphere : Graphene::Sphere #

[View source]
def center : Graphene::Point3D #

[View source]
def contains_box(b : Graphene::Box) : Bool #

[View source]
def contains_point(point : Graphene::Point3D) : Bool #

[View source]
def depth : Float32 #

[View source]
def equal(b : Graphene::Box) : Bool #

[View source]
def expand(point : Graphene::Point3D) : Graphene::Box #

[View source]
def expand_scalar(scalar : Float32) : Graphene::Box #

[View source]
def expand_vec3(vec : Graphene::Vec3) : Graphene::Box #

[View source]
def free : Nil #

[View source]
def height : Float32 #

[View source]
def init(min : Graphene::Point3D | Nil, max : Graphene::Point3D | Nil) : Graphene::Box #

[View source]
def init_from_box(src : Graphene::Box) : Graphene::Box #

[View source]
def init_from_points(points : Enumerable(Graphene::Point3D)) : Graphene::Box #

[View source]
def init_from_points(*points : Graphene::Point3D) #

[View source]
def init_from_vec3(min : Graphene::Vec3 | Nil, max : Graphene::Vec3 | Nil) : Graphene::Box #

[View source]
def init_from_vectors(vectors : Enumerable(Graphene::Vec3)) : Graphene::Box #

[View source]
def init_from_vectors(*vectors : Graphene::Vec3) #

[View source]
def intersection(b : Graphene::Box) : Graphene::Box #

[View source]
def max : Graphene::Point3D #

[View source]
def max(*args, **options) #

[View source]
def max(*args, **options, &) #

[View source]
def max=(arg) #

[View source]
def min : Graphene::Point3D #

[View source]
def min(*args, **options) #

[View source]
def min(*args, **options, &) #

[View source]
def min=(arg) #

[View source]
def size : Graphene::Vec3 #

[View source]
def union(b : Graphene::Box) : Graphene::Box #

[View source]
def vertices(vertices : Enumerable(Graphene::Vec3)) : Nil #

[View source]
def vertices(*vertices : Graphene::Vec3) #

[View source]
def width : Float32 #

[View source]