Module: Ra

Defined in:
lib/ra.rb,
lib/ra/ray.rb,
lib/ra/color.rb,
lib/ra/light.rb,
lib/ra/pixel.rb,
lib/ra/tuple.rb,
lib/ra/world.rb,
lib/ra/camera.rb,
lib/ra/engine.rb,
lib/ra/logger.rb,
lib/ra/surface.rb,
lib/ra/version.rb,
lib/ra/lighting.rb,
lib/ra/material.rb,
lib/ra/quadratic.rb,
lib/ra/transform.rb,
lib/ra/shape/base.rb,
lib/ra/shape/cube.rb,
lib/ra/shape/plane.rb,
lib/ra/intersection.rb,
lib/ra/pattern/base.rb,
lib/ra/shape/sphere.rb,
lib/ra/pattern/rings.rb,
lib/ra/shape/cylinder.rb,
lib/ra/pattern/stripes.rb,
lib/ra/pattern/texture.rb,
lib/ra/pattern/checkers.rb,
lib/ra/pattern/gradient.rb

Overview

Named for [“Ra”](en.wikipedia.org/wiki/Ra).

Defined Under Namespace

Modules: Pattern, Quadratic, Shape, Tuple Classes: Camera, Color, Engine, Intersection, Light, Lighting, Logger, Material, Pixel, Ray, Surface, Transform, World

Constant Summary collapse

EPSILON =
(2**-16)
VERSION =
'1.0.0'

Class Method Summary collapse

Class Method Details

.loggerRa::Logger

Returns:



14
15
16
# File 'lib/ra.rb', line 14

def self.logger
  @logger ||= Logger.new
end