Class: Rubygoal::Velocity
- Inherits:
-
Coordinate
- Object
- Struct
- Coordinate
- Rubygoal::Velocity
- Defined in:
- lib/rubygoal/coordinate.rb
Instance Attribute Summary
Attributes inherited from Coordinate
Instance Method Summary collapse
Methods inherited from Coordinate
Instance Method Details
#nonzero? ⇒ Boolean
21 22 23 |
# File 'lib/rubygoal/coordinate.rb', line 21 def nonzero? x != 0 && y != 0 end |