Method: MiniGL::Vector#-

Defined in:
lib/minigl/global.rb

#-(other_vector) ⇒ Object

Subtracts other_vector from this vector, i.e., subtracts from each coordinate of this vector the corresponding coordinate of other_vector.



47
48
49
# File 'lib/minigl/global.rb', line 47

def -(other_vector)
  Vector.new @x - other_vector.x, @y - other_vector.y
end