class TransformationWrapper
- TransformationWrapper
- BoundedHitable
- Hitable
- Reference
- Object
Defined in:
transformation.crConstructors
Instance Method Summary
- #hit(ray : Ray)
-
#rotate(axis : Vector, degrees : Float64)
Pretty much the same as
Hitable.rotate(axis, degrees), but instead of nestingTransformationWrappers change the value of the transformation -
#scale(size : Float64)
Pretty much the same as
Hitable.scale(size), but instead of nestingTransformationWrappers change the value of the transformation -
#translate(offset : Vector)
Pretty much the same as
Hitable.translate(offset), but instead of nestingTransformationWrappers change the value of the transformation
Instance methods inherited from class BoundedHitable
bounding_box : AABB
bounding_box,
bounding_box=(bounding_box : AABB)
bounding_box=
Constructor methods inherited from class BoundedHitable
new
new
Instance methods inherited from class Hitable
area : Float64
area,
area_light : Light?
area_light,
area_light=(area_light : Light?)
area_light=,
hit(ray : Ray) : HitRecord?
hit,
pdf(point : Point, wi : Vector) : Float64pdf(point : Point) : Float64 pdf, rotate(axis : Vector, degrees : Float64) : Hitable rotate, rotate_x(degrees : Float64) : Hitable rotate_x, rotate_y(degrees : Float64) : Hitable rotate_y, rotate_z(degrees : Float64) : Hitable rotate_z, sample(origin) : ::Tuple(Point, Normal)
sample : ::Tuple(Point, Normal) sample, scale(size : Float64) : Hitable scale, translate(offset : Vector) : Hitable translate
Constructor Detail
Instance Method Detail
Pretty much the same as Hitable.rotate(axis, degrees),
but instead of nesting TransformationWrappers
change the value of the transformation
Pretty much the same as Hitable.scale(size),
but instead of nesting TransformationWrappers
change the value of the transformation
Pretty much the same as Hitable.translate(offset),
but instead of nesting TransformationWrappers
change the value of the transformation