Method: Math2D::Vector2D#ratio

Defined in:
lib/math2d/vector2d.rb

#ratioFloat

Returns the ratio (x / y) of self.

Returns:

  • (Float)


227
228
229
# File 'lib/math2d/vector2d.rb', line 227

def ratio
  x.to_f / y
end