struct Graphene::Frustum

Overview

A 3D volume delimited by 2D clip planes.

The contents of the graphene_::frustum_t are private, and should not be modified directly.

Defined in:

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

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

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

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

def self.new(planes : Enumerable(Graphene::Plane)? = nil) #

Class Method Detail

def self.g_type : UInt64 #

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


Instance Method Detail

def ==(other : self) : Bool #

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

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

def free : Nil #


def init_from_frustum(src : Graphene::Frustum) : Graphene::Frustum #

def init_from_matrix(matrix : Graphene::Matrix) : Graphene::Frustum #

def intersects_box(box : Graphene::Box) : Bool #

def intersects_sphere(sphere : Graphene::Sphere) : Bool #

def planes(planes : Enumerable(Graphene::Plane)) : Nil #

def planes(*planes : Graphene::Plane) #

def planes(*args, **options) #

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

def planes=(arg) #