Class: Float
Overview
The following allows multiplication to be written like
10 * v(1,0,0)
or
10 * :x
implemented for both Float and Fixnum
Instance Method Summary collapse
Instance Method Details
#*(val) ⇒ Object
17 18 19 20 21 22 |
# File 'lib/shattered_view/ogrerb/vector.rb', line 17 def *(val) unless val.is_a? Numeric return val*self end return numeric_times(val) end |
#numeric_times ⇒ Object
16 |
# File 'lib/shattered_view/ogrerb/vector.rb', line 16 alias_method :numeric_times, :* |