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
struct
CrystalRayTracer::
Light
CrystalRayTracer::Light
Struct
Value
Object
Defined in:
crystal_ray_tracer.cr
Constructors
.new
(pos : Vector, color : Color)
Instance Method Summary
#clone
#color
: Color
#copy_with
(pos _pos = @pos, color _color = @color)
#pos
: Vector
Constructor Detail
def self.
new
(pos :
Vector
, color :
Color
)
#
[
View source
]
Instance Method Detail
def
clone
#
[
View source
]
def
color
:
Color
#
def
copy_with
(pos _pos = @pos, color _color = @color)
#
[
View source
]
def
pos
:
Vector
#