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, 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
- #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?, 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(*args, **options)
- #radius(*args, **options, &)
- #radius=(arg)
- #translate(point : Graphene::Point3D) : Graphene::Sphere
Constructor Detail
Class Method Detail
Instance Method Detail
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
#