RayTracerChallenge::Common
Inherits Struct < Value < Object
Common code shared by Point and Vector
Constructors
new(x, y, z)
Instance methods
-
note: maybe use #neg or #negate instead?
div(scalar)
mul(scalar)
point?
vector?
w
x
y
z
Inherits Struct < Value < Object
Common code shared by Point and Vector
note: maybe use #neg or #negate instead?