Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
rtiow
main
Top Level Namespace
AaBb
BVHNode
Camera
Checker
Color
CoverScene
Dielectric
HitRecord
Hittable
HittableList
Lambertian
Material
MaybeRayAndAttenuation
Metal
MovingSphere
Noise
Perlin
Ray
Scene
SolidColor
Sphere
Texture
TwoPerlinSpheres
TwoSpheres
Vec3
Generated using Crystal 1.16.3
2025-12-23 22:04:23 UTC
abstract class
Hittable
Hittable
Reference
Object
Direct Known Subclasses
BVHNode
HittableList
MovingSphere
Sphere
Defined in:
hittable.cr
Instance Method Summary
#bounding_box
(time0 : Float64, time1 : Float64) : AaBb | Nil
#hit
(r : Ray, t_min : Float64, t_max : Float64) : HitRecord | Nil
Instance Method Detail
abstract def
bounding_box
(time0 : Float64, time1 : Float64) :
AaBb
| Nil
#
[
View source
]
abstract def
hit
(r :
Ray
, t_min : Float64, t_max : Float64) :
HitRecord
| Nil
#
[
View source
]