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::
Ray
CrystalRayTracer::Ray
Struct
Value
Object
Defined in:
crystal_ray_tracer.cr
Constructors
.new
(start : Vector, dir : Vector)
Instance Method Summary
#clone
#copy_with
(start _start = @start, dir _dir = @dir)
#dir
: Vector
#start
: Vector
Constructor Detail
def self.
new
(start :
Vector
, dir :
Vector
)
#
[
View source
]
Instance Method Detail
def
clone
#
[
View source
]
def
copy_with
(start _start = @start, dir _dir = @dir)
#
[
View source
]
def
dir
:
Vector
#
def
start
:
Vector
#