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

Method area

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

most efficient way to compute area

(&self)

Source from the content-addressed store, hash-verified

27impl Area for Circle {
28 /// most efficient way to compute area
29 fn area(&self) -> f64 {
30 std::f64::consts::PI * (self.radius.powi(2))
31 }
32}
33
34/// Circle also supports circumference

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected