mirror of
https://github.com/TheAlgorithms/Python.git
synced 2026-09-28 13:33:11 +08:00
* chore(geometry): add angle conversion, ellipse eccentricity, polygon geometry, and triangle class - Added `Angle.to_radians()` and `Angle.from_radians()` for degree-radian conversion. - Improved `Ellipse.perimeter` with Ramanujan’s approximation and added `eccentricity` property. - Enhanced `Polygon` with vertex generation, perimeter, and area computation. - Updated `Rectangle` to construct all four sides and support complete vertex/area logic. - Introduced new `Triangle` class with validation, perimeter, and Heron’s area formula. * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>