module

RayTracer

Constants

VERSION = "0.1.0"

Instance methods

canvas(width, height, color = RayTracer::Color.new(0, 0, 0))
Source
color(r, g, b)
Source
identity_matrix
Source
point(x, y, z)
Source
rotation(axis : Axis, radians : Numeric) : RayTracer::Matrix
Source
scaling(x : Numeric, y : Numeric, z : Numeric) : RayTracer::Matrix
Source
shearing(x2y : Numeric, x2z : Numeric, y2x : Numeric, y2z : Numeric, z2x : Numeric, z2y : Numeric) : RayTracer::Matrix
Source
translation(x : Numeric, y : Numeric, z : Numeric) : RayTracer::Matrix
Source
tuple(x, y, z, w)
Source
vector(x, y, z)
Source

Nested types