Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
ray_tracer_challenge
master
Chapter2
PlotProjectile
Chapter4
ClockFace
Chapter5
RayCastSphere
Environment
Float64
Main
Projectile
RayTracerChallenge
Adapters
PpmWriter
RGB
SubPixel
SubPixelStream
Canvas
Color
Common
Intersection
Intersections
Point
Ray
Sphere
SquareMatrix
Transform
CoreExtensions
Float64
Extensions
Includes
Vector
Tuple
Generated using Crystal 1.14.0
2024-11-26 08:00:14 UTC
struct
RayTracerChallenge::
Point
RayTracerChallenge::Point
RayTracerChallenge::Common
Struct
Value
Object
Defined in:
ray_tracer_challenge/point.cr
Instance Method Summary
#add
(other : Point | Vector)
#point?
#sub
(p : Point)
#sub
(v : Vector)
#to_tuple
Instance methods inherited from struct
RayTracerChallenge::Common
-
-
,
div(scalar)
div
,
mul(scalar)
mul
,
point?
point?
,
vector?
vector?
,
w
w
,
x : Float64
x
,
y : Float64
y
,
z : Float64
z
Constructor methods inherited from struct
RayTracerChallenge::Common
new(x, y, z)
new
Instance Method Detail
def
add
(other :
Point
|
Vector
)
#
[
View source
]
def
point?
#
[
View source
]
def
sub
(p :
Point
)
#
[
View source
]
def
sub
(v :
Vector
)
#
[
View source
]
def
to_tuple
#
[
View source
]