RayTracer::Shape
Inherits RayTracer::Tuple < Reference < Object
Constructors
new(transform : RayTracer::Matrix = Matrix::IDENTITY_4, material : RayTracer::Material = Material.new)
SourceInstance methods
intersect(ray : Ray) : Intersections
Sourceinverse_transform
Sourcelocal_intersect(ray : Ray) : Intersections
Sourcelocal_normal_at(point : TUPLE)
Sourcematerial
Sourcematerial=(material : RayTracer::Material)
Sourcenormal_at(point : TUPLE)
Sourcetransform
Sourcetransform=(val : Matrix)
Sourcetranspose_inverse_transform
Source