Method: Hash#*

Defined in:
lib/hash_vector.rb

#*(scalar) ⇒ Object



4
5
6
# File 'lib/hash_vector.rb', line 4

def *(scalar)
  {:x => self[:x] * scalar.to_f, :y => self[:y] * scalar.to_f}
end