MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / area

Method area

geometry/geometry.py:261–262  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

259 return (self.short_side.length + self.long_side.length) * 2
260
261 def area(self) -> float:
262 return self.short_side.length * self.long_side.length
263
264
265@dataclass

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected