Method: GeometricDistance#distance
- Defined in:
- lib/flash_math/modules/geometry/geometric_distance.rb
#distance ⇒ Object
8 9 10 |
# File 'lib/flash_math/modules/geometry/geometric_distance.rb', line 8 def distance Math.hypot(point1.x - point2.x, point1.y - point2.y) end |