MCPcopy Create free account
hub / github.com/bedroombuilds/python2rust / circumference

Method circumference

02_ecosystem/geo/src/lib.rs:37–39  ·  view source on GitHub ↗

most efficient way to compute perimeter

(&self)

Source from the content-addressed store, hash-verified

35impl Perimeter for Circle {
36 /// most efficient way to compute perimeter
37 fn circumference(&self) -> f64 {
38 std::f64::consts::PI * 2. * self.radius
39 }
40}
41
42/// Square object, coords and sidelength as properties

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected