1
 2
 3
 4
 5
 6
 7
 8
 9
10
//! Perimeter

/// Example
/// ```rust
/// let circle = bose::perimeter::circle(10.0);
/// assert_eq!(62.83185307179586, circle);
/// ```
pub fn circle(radius: f64) -> f64 {
	return 2.0 * std::f64::consts::PI * radius;
}