Method: MiniGL::Vector#+
- Defined in:
- lib/minigl/global.rb
#+(other_vector) ⇒ Object
Sums this vector with other_vector, i.e., sums each coordinate of this vector with the corresponding coordinate of other_vector.
41 42 43 |
# File 'lib/minigl/global.rb', line 41 def +(other_vector) Vector.new @x + other_vector.x, @y + other_vector.y end |