Method: Ray::Vector2#*

Defined in:
lib/ray/vector.rb

#*(float) ⇒ Ray::Vector2 #*(vector) ⇒ Ray::Vector2

Overloads:



38
39
40
41
42
43
44
45
# File 'lib/ray/vector.rb', line 38

def *(other)
  if other.respond_to? :to_vector2
    other = other.to_vector2
    Ray::Vector2[x * other.x, y * other.y]
  else
    Ray::Vector2[x * other, y * other]
  end
end