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::
Vector
CrystalRayTracer::Vector
Struct
Value
Object
Defined in:
crystal_ray_tracer/vector.cr
Constructors
.new
(x : Float64, y : Float64, z : Float64)
Class Method Summary
.cross
(v1, v2)
.dot
(v1, v2)
.mag
(v)
.minus
(v1, v2)
.norm
(v)
.plus
(v1, v2)
.scale
(k, v)
Instance Method Summary
#x
: Float64
#y
: Float64
#z
: Float64
Constructor Detail
def self.
new
(x : Float64, y : Float64, z : Float64)
#
[
View source
]
Class Method Detail
def self.
cross
(v1, v2)
#
[
View source
]
def self.
dot
(v1, v2)
#
[
View source
]
def self.
mag
(v)
#
[
View source
]
def self.
minus
(v1, v2)
#
[
View source
]
def self.
norm
(v)
#
[
View source
]
def self.
plus
(v1, v2)
#
[
View source
]
def self.
scale
(k, v)
#
[
View source
]
Instance Method Detail
def
x
: Float64
#
[
View source
]
def
y
: Float64
#
[
View source
]
def
z
: Float64
#
[
View source
]