class Graphene::Sphere
- Graphene::Sphere
- Reference
- Object
Overview
A sphere, represented by its center and radius.
Defined in:
lib/gi-crystal/src/auto/graphene-1.0/sphere.crConstructors
- .new(pointer : Pointer(Void), transfer : GICrystal::Transfer)
- .new(center : Graphene::Vec3? = nil, radius : Float32? = nil)
Class Method Summary
-
.g_type : UInt64
Returns the type id (GType) registered in GLib type system.
Instance Method Summary
-
#==(other : self) : Bool
Returns
true
if this reference is the same as other. - #bounding_box : Graphene::Box
- #center : Graphene::Point3D
- #center=(value : Graphene::Vec3)
- #contains_point(point : Graphene::Point3D) : Bool
- #distance(point : Graphene::Point3D) : Float32
- #equal(b : Graphene::Sphere) : Bool
- #free : Nil
- #init(center : Graphene::Point3D?, radius : Float32) : Graphene::Sphere
- #init_from_points(points : Enumerable(Graphene::Point3D), center : Graphene::Point3D?) : Graphene::Sphere
- #init_from_vectors(vectors : Enumerable(Graphene::Vec3), center : Graphene::Point3D?) : Graphene::Sphere
- #is_empty : Bool
- #radius : Float32
- #radius=(value : Float32)
- #to_unsafe
- #translate(point : Graphene::Point3D) : Graphene::Sphere
Constructor Detail
Class Method Detail
Instance Method Detail
Description copied from class Reference
Returns true
if this reference is the same as other. Invokes same?
.
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
#