class RayTracer::StripePattern
- RayTracer::StripePattern
- RayTracer::Pattern
- Reference
- Object
Defined in:
ray_tracer/stripe_pattern.crConstructors
- .new(a : COLOR, b : COLOR, transform = Matrix::IDENTITY_4)
- .new(a : Int32, b : Int32, transform = Matrix::IDENTITY_4)
- .new(a : Pattern, b : Pattern, transform = Matrix::IDENTITY_4)
Instance Method Summary
- #==(other : StripePattern)
- #a : RayTracer::Pattern
- #b : RayTracer::Pattern
-
#dup
Returns a shallow copy of this object.
- #pattern_at(point : TUPLE)
Instance methods inherited from class RayTracer::Pattern
==(other : Pattern)
==,
dup
dup,
inverse_transform : Matrix
inverse_transform,
pattern_at(point : TUPLE)
pattern_at,
pattern_at_shape(object : Shape, world_point : TUPLE)
pattern_at_shape,
transform : Matrix
transform,
transform=(val : Matrix)
transform=,
transpose_inverse_transform : Matrix
transpose_inverse_transform
Constructor methods inherited from class RayTracer::Pattern
new(transform : RayTracer::Matrix = Matrix::IDENTITY_4)
new
Instance methods inherited from module RayTracer::Tuple
add(a1 : TUPLE, a2 : TUPLE)
add,
cross(a1 : TUPLE, a2 : TUPLE)
cross,
divide(a : TUPLE, s : Float64)
divide,
dot(a1 : TUPLE, a2 : TUPLE)
dot,
magnitude(a : TUPLE)
magnitude,
multiply(a : TUPLE, s : Float64)
multiply,
negate(a : TUPLE)
negate,
normalize(a : TUPLE)
normalize,
point(x : Float64, y : Float64, z : Float64)
point,
point?(tuple : TUPLE)
point?,
reflect(v : TUPLE, n : TUPLE)
reflect,
subtract(a1 : TUPLE, a2 : TUPLE)
subtract,
tuple(x : Float64, y : Float64, z : Float64, w : Float64)tuple(vals : Array(Float64)) tuple, vector(x : Float64, y : Float64, z : Float64) vector, vector?(tuple : TUPLE) vector?
Instance methods inherited from module RayTracer::Color
abs(c : COLOR)
abs,
add(c1 : COLOR, c2 : COLOR)
add,
color(r : Float32, g : Float32, b : Float32)color(h : Int32) color, divide(c : COLOR, s : Float32) divide, multiply(c : COLOR, s : Float32)
multiply(c1 : COLOR, c2 : COLOR) multiply, subtract(c1 : COLOR, c2 : COLOR) subtract
Constructor Detail
Instance Method Detail
def dup
#
Description copied from class Reference
Returns a shallow copy of this object.
This allocates a new object and copies the contents of
self
into it.