Method: Joules.arc_length
- Defined in:
- lib/joules/geometry.rb
.arc_length(radius, central_angle) ⇒ Float
Calculates the arc length of a circle given radius and central angle.
25 26 27 |
# File 'lib/joules/geometry.rb', line 25 def arc_length(radius, central_angle) return radius * central_angle.to_f end |