struct Graphene::Sphere

Overview

A sphere, represented by its center and radius.

Defined in:

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

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

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

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

def self.new(center : Graphene::Vec3? = nil, radius : Float32? = 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 bounding_box : Graphene::Box #

def center : Graphene::Point3D #

def center(*args, **options) #

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

def center=(arg) #

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

def distance(point : Graphene::Point3D) : Float32 #

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

def free : Nil #

def init(center : Graphene::Point3D?, radius : Float32) : Graphene::Sphere #

def init_from_points(points : Enumerable(Graphene::Point3D), center : Graphene::Point3D?) : Graphene::Sphere #

def init_from_vectors(vectors : Enumerable(Graphene::Vec3), center : Graphene::Point3D?) : Graphene::Sphere #

def is_empty : Bool #

def radius : Float32 #

def radius(*args, **options) #

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

def radius=(arg) #

def translate(point : Graphene::Point3D) : Graphene::Sphere #