Class: Numeric
- Inherits:
-
Object
- Object
- Numeric
- Defined in:
- lib/chippunk.rb
Instance Method Summary collapse
Instance Method Details
#radians_to_vec2 ⇒ Object
21 22 23 |
# File 'lib/chippunk.rb', line 21 def radians_to_vec2 CP::Vec2.new(Math::cos(self), Math::sin(self)) end |