class 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(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 #
Description copied from class Reference

Returns true if this reference is the same as other. Invokes same?.


def bounding_box : Graphene::Box #

def center : Graphene::Point3D #

def center=(value : Graphene::Vec3) #

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=(value : Float32) #

def to_unsafe #

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