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

Method diameter

geometry/geometry.py:135–140  ·  view source on GitHub ↗

>>> Circle(5).diameter 10

(self)

Source from the content-addressed store, hash-verified

133
134 @property
135 def diameter(self) -> float:
136 """
137 >>> Circle(5).diameter
138 10
139 """
140 return self.radius * 2
141
142 def max_parts(self, num_cuts: float) -> float:
143 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected