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

Method perimeter

geometry/geometry.py:258–259  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

256 super().add_side(self.long_side)
257
258 def perimeter(self) -> float:
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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected