struct Graphene::Ray
- Graphene::Ray
- Struct
- Value
- Object
Overview
A ray emitted from an origin in a given direction.
The contents of the graphene_::ray_t
structure are private, and should not
be modified directly.
Defined in:
lib/gi-crystal/src/auto/graphene-1.0/ray.crConstructors
- .new(pointer : Pointer(Void), transfer : GICrystal::Transfer)
- .new(data : LibGraphene::Ray, _transfer : GICrystal::Transfer)
- .new(origin : Graphene::Vec3 | Nil = nil, direction : Graphene::Vec3 | Nil = nil)
Class Method Summary
-
.g_type : UInt64
Returns the type id (GType) registered in GLib type system.
Instance Method Summary
- #==(other : self) : Bool
- #closest_point_to_point(p : Graphene::Point3D) : Graphene::Point3D
- #direction : Graphene::Vec3
- #direction(*args, **options)
- #direction(*args, **options, &)
- #direction=(arg)
- #distance_to_plane(p : Graphene::Plane) : Float32
- #distance_to_point(p : Graphene::Point3D) : Float32
- #equal(b : Graphene::Ray) : Bool
- #free : Nil
- #init(origin : Graphene::Point3D | Nil, direction : Graphene::Vec3 | Nil) : Graphene::Ray
- #init_from_ray(src : Graphene::Ray) : Graphene::Ray
- #init_from_vec3(origin : Graphene::Vec3 | Nil, direction : Graphene::Vec3 | Nil) : Graphene::Ray
- #intersect_box(b : Graphene::Box, t_out : Float32) : Graphene::RayIntersectionKind
- #intersect_sphere(s : Graphene::Sphere, t_out : Float32) : Graphene::RayIntersectionKind
- #intersect_triangle(t : Graphene::Triangle, t_out : Float32) : Graphene::RayIntersectionKind
- #intersects_box(b : Graphene::Box) : Bool
- #intersects_sphere(s : Graphene::Sphere) : Bool
- #intersects_triangle(t : Graphene::Triangle) : Bool
- #origin : Graphene::Point3D
- #origin(*args, **options)
- #origin(*args, **options, &)
- #origin=(arg)
- #position_at(t : Float32) : Graphene::Point3D
Constructor Detail
Class Method Detail
Returns the type id (GType) registered in GLib type system.
Instance Method Detail
def init_from_vec3(origin : Graphene::Vec3 | Nil, direction : Graphene::Vec3 | Nil) : Graphene::Ray
#