Class: Numeric

Inherits:
Object
  • Object
show all
Defined in:
lib/chippunk.rb

Instance Method Summary collapse

Instance Method Details

#radians_to_vec2Object



21
22
23
# File 'lib/chippunk.rb', line 21

def radians_to_vec2
  CP::Vec2.new(Math::cos(self), Math::sin(self))
end