Returns the ratio (x / y) of self.
self
Returns:
227 228 229
# File 'lib/math2d/vector2d.rb', line 227 def ratio x.to_f / y end