class Float

Public Instance Methods

*(other) click to toggle source
# File lib/rubytracer/colour.rb, line 80
def * other
  case other
  when Rubytracer::Colour
    Rubytracer::Colour.new(self * other.r, self * other.g, self * other.b)
  else
    self.times_without_rubytracer(other)
  end
end