class RayTracer::PointLight
 
  - RayTracer::PointLight
 - Reference
 - Object
 
Included Modules
Extended Modules
Defined in:
ray_tracer/point_light.crConstant Summary
- 
        NIL = 
PointLight.new(point(0, 0, 0), color(0, 0, 0)) 
Constructors
Instance Method Summary
- 
        #==(other)
        
          
Returns
false(other can only be aValuehere). - #intensity : {r: Float32, g: Float32, b: Float32}
 - #position : {x: Float64, y: Float64, z: Float64, w: Float64}
 
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
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?
Constructor Detail
Instance Method Detail
        
        def ==(other)
        #
      
      
        
              Description copied from class Reference
            
          
          Returns false (other can only be a Value here).