struct Graphene::Sphere
- Graphene::Sphere
- Struct
- Value
- 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(data : LibGraphene::Sphere, _transfer : GICrystal::Transfer)
- .new(center : Graphene::Vec3 | Nil = nil, radius : Float32 | Nil = nil)
Class Method Summary
-
.g_type : UInt64
Returns the type id (GType) registered in GLib type system.
Instance Method Summary
- #==(other : self) : Bool
- #bounding_box : Graphene::Box
- #center : Graphene::Point3D
- #center(*args, **options)
- #center(*args, **options, &)
- #center=(arg)
- #contains_point(point : Graphene::Point3D) : Bool
- #distance(point : Graphene::Point3D) : Float32
- #equal(b : Graphene::Sphere) : Bool
- #free : Nil
- #init(center : Graphene::Point3D | Nil, radius : Float32) : Graphene::Sphere
- #init_from_points(points : Enumerable(Graphene::Point3D), center : Graphene::Point3D | Nil) : Graphene::Sphere
- #init_from_vectors(vectors : Enumerable(Graphene::Vec3), center : Graphene::Point3D | Nil) : Graphene::Sphere
- #is_empty : Bool
- #radius : Float32
- #radius(*args, **options)
- #radius(*args, **options, &)
- #radius=(arg)
- #translate(point : Graphene::Point3D) : Graphene::Sphere
Constructor Detail
Class Method Detail
Returns the type id (GType) registered in GLib type system.
Instance Method Detail
def init_from_points(points : Enumerable(Graphene::Point3D), center : Graphene::Point3D | Nil) : Graphene::Sphere
#
def init_from_vectors(vectors : Enumerable(Graphene::Vec3), center : Graphene::Point3D | Nil) : Graphene::Sphere
#