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

Class Square

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

Square object, coords and sidelength as properties

Source from the content-addressed store, hash-verified

41
42/// Square object, coords and sidelength as properties
43pub struct Square {
44 /// x-coordinate in 2D space
45 pub x: f64,
46 /// y-coordinate in 2D space
47 pub y: f64,
48 /// sidelength unit-less
49 pub sidelen: f64,
50}
51
52/// Only Area supported, circumference is too hard to compute
53impl Area for Square {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected