Class: Ra::Light
- Inherits:
-
Object
- Object
- Ra::Light
- Defined in:
- lib/ra/light.rb
Overview
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(intensity:, position:) ⇒ Light
constructor
A new instance of Light.
Constructor Details
#initialize(intensity:, position:) ⇒ Light
Returns a new instance of Light.
22 23 24 25 |
# File 'lib/ra/light.rb', line 22 def initialize(intensity:, position:) @intensity = intensity @position = position end |
Instance Attribute Details
#position ⇒ Vector
18 19 20 |
# File 'lib/ra/light.rb', line 18 def position @position end |