class

RayTracer::Shape

Inherits RayTracer::Tuple < Reference < Object

Constructors

new(transform : RayTracer::Matrix = Matrix::IDENTITY_4, material : RayTracer::Material = Material.new)
Source

Instance methods

==(other)

Returns false (other can only be a Value here).

Source
intersect(ray : Ray) : Intersections
Source
inverse_transform
Source
local_intersect(ray : Ray) : Intersections
Source
local_normal_at(point : TUPLE)
Source
material
Source
material=(material : RayTracer::Material)
Source
normal_at(point : TUPLE)
Source
transform
Source
transform=(val : Matrix)
Source
transpose_inverse_transform
Source