Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
crystal_ray_tracer
master
CrystalRayTracer
Camera
CheckerboardSurface
Color
DefaultScene
Intersection
Light
Plane
Ray
RayTracer
ShinySurface
Sphere
Surface
Thing
Vector
Generated using Crystal 1.14.0
2024-11-26 07:40:06 UTC
class
CrystalRayTracer::
Sphere
CrystalRayTracer::Sphere
CrystalRayTracer::Thing
Reference
Object
Defined in:
crystal_ray_tracer/sphere.cr
Constructors
.new
(center : Vector, radius : Float64, _surface : Surface)
Instance Method Summary
#intersect
(ray)
#normal
(pos)
#surface
: CrystalRayTracer::Surface
Constructor Detail
def self.
new
(center :
Vector
, radius : Float64, _surface :
Surface
)
#
[
View source
]
Instance Method Detail
def
intersect
(ray)
#
[
View source
]
def
normal
(pos)
#
[
View source
]
def
surface
:
CrystalRayTracer::Surface
#
[
View source
]