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

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

[View source]
def self.new(center : Graphene::Vec3 | Nil = nil, radius : Float32 | Nil = nil) #

[View source]

Class Method Detail

def self.g_type : UInt64 #

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


[View source]

Instance Method Detail

def ==(other : self) : Bool #

[View source]
def bounding_box : Graphene::Box #

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

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

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

[View source]
def center=(arg) #

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

[View source]
def distance(point : Graphene::Point3D) : Float32 #

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

[View source]
def free : Nil #

[View source]
def init(center : Graphene::Point3D | Nil, radius : Float32) : Graphene::Sphere #

[View source]
def init_from_points(points : Enumerable(Graphene::Point3D), center : Graphene::Point3D | Nil) : Graphene::Sphere #

[View source]
def init_from_vectors(vectors : Enumerable(Graphene::Vec3), center : Graphene::Point3D | Nil) : Graphene::Sphere #

[View source]
def is_empty : Bool #

[View source]
def radius : Float32 #

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

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

[View source]
def radius=(arg) #

[View source]
def translate(point : Graphene::Point3D) : Graphene::Sphere #

[View source]