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:22 UTC
struct
Ray
Ray
Struct
Value
Object
Defined in:
ray.cr
Constructors
.new
(origin : Vec3, direction : Vec3, tm : Float64 =
0.0
)
Instance Method Summary
#at
(t : Float64)
#direction
: Vec3
#origin
: Vec3
#tm
: Float64
Constructor Detail
def self.
new
(origin :
Vec3
, direction :
Vec3
, tm : Float64 =
0.0
)
#
[
View source
]
Instance Method Detail
def
at
(t : Float64)
#
[
View source
]
def
direction
:
Vec3
#
[
View source
]
def
origin
:
Vec3
#
[
View source
]
def
tm
: Float64
#
[
View source
]