struct Graphene::Box
- Graphene::Box
- Struct
- Value
- Object
Overview
A 3D box, described as the volume between a minimum and a maximum vertices.
Defined in:
lib/gi-crystal/src/auto/graphene-1.0/box.crConstructors
- .new(pointer : Pointer(Void), transfer : GICrystal::Transfer)
- .new(data : LibGraphene::Box, _transfer : GICrystal::Transfer)
- .new(min : Graphene::Vec3 | Nil = nil, max : Graphene::Vec3 | Nil = nil)
Class Method Summary
- .empty : Graphene::Box
-
.g_type : UInt64
Returns the type id (GType) registered in GLib type system.
- .infinite : Graphene::Box
- .minus_one : Graphene::Box
- .one : Graphene::Box
- .one_minus_one : Graphene::Box
- .zero : Graphene::Box
Instance Method Summary
- #==(other : self) : Bool
- #bounding_sphere : Graphene::Sphere
- #center : Graphene::Point3D
- #contains_box(b : Graphene::Box) : Bool
- #contains_point(point : Graphene::Point3D) : Bool
- #depth : Float32
- #equal(b : Graphene::Box) : Bool
- #expand(point : Graphene::Point3D) : Graphene::Box
- #expand_scalar(scalar : Float32) : Graphene::Box
- #expand_vec3(vec : Graphene::Vec3) : Graphene::Box
- #free : Nil
- #height : Float32
- #init(min : Graphene::Point3D | Nil, max : Graphene::Point3D | Nil) : Graphene::Box
- #init_from_box(src : Graphene::Box) : Graphene::Box
- #init_from_points(points : Enumerable(Graphene::Point3D)) : Graphene::Box
- #init_from_points(*points : Graphene::Point3D)
- #init_from_vec3(min : Graphene::Vec3 | Nil, max : Graphene::Vec3 | Nil) : Graphene::Box
- #init_from_vectors(vectors : Enumerable(Graphene::Vec3)) : Graphene::Box
- #init_from_vectors(*vectors : Graphene::Vec3)
- #intersection(b : Graphene::Box) : Graphene::Box
- #max : Graphene::Point3D
- #max(*args, **options)
- #max(*args, **options, &)
- #max=(arg)
- #min : Graphene::Point3D
- #min(*args, **options)
- #min(*args, **options, &)
- #min=(arg)
- #size : Graphene::Vec3
- #union(b : Graphene::Box) : Graphene::Box
- #vertices(vertices : Enumerable(Graphene::Vec3)) : Nil
- #vertices(*vertices : Graphene::Vec3)
- #width : Float32
Constructor Detail
Class Method Detail
Returns the type id (GType) registered in GLib type system.