Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix:Fit perimeter.cpp to guidelines #2911

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Ryn9785
Copy link

@Ryn9785 Ryn9785 commented Dec 17, 2024

fix: corrected perimeter implementation and updated documentation

Description of Change

  • Fixed parameter names for triangle and parallelogram perimeter functions to reflect correct usage of sides instead of base/height.
  • Removed cube and cylinder perimeter functions, as perimeter is defined only to 2D shapes.
  • Renamed n_polygon_surface_perimeter to n_sides_regular_polygon_perimeter for improved clarity.
  • Updated and clarified documentation for all perimeter-related functions to follow Doxygen guidelines.
  • Added tests to ensure correctness of all perimeter calculations.

Checklist

  • Added description of change
  • Added tests and example, test must pass
  • Added documentation so that the program is self-explanatory and educational - Doxygen guidelines
  • Relevant documentation/comments are changed or added
  • PR title follows semantic commit guidelines
  • Searched previous suggestions to avoid duplication
  • I acknowledge that all my contributions will be made under the project's license

note:

this is my first contribution here :-)

fix: corrected perimeter implementation and updated documentation

### Description of Change
- Fixed parameter names for triangle and parallelogram perimeter functions to reflect correct usage of sides instead of base/height.
- Removed cube and cylinder perimeter functions, as perimeter is defined only to 2D shapes.
- Renamed `n_polygon_surface_perimeter` to `n_sides_regular_polygon_perimeter` for improved clarity.
- Updated and clarified documentation for all perimeter-related functions to follow Doxygen guidelines.
- Added tests to ensure correctness of all perimeter calculations.

### Checklist
- [x] Added description of change  
- [x] Added tests and example, test must pass  
- [x] Added documentation so that the program is self-explanatory and educational - Doxygen guidelines  
- [x] Relevant documentation/comments are changed or added  
- [x] PR title follows semantic commit guidelines  
- [x] Searched previous suggestions to avoid duplication  
- [x] I acknowledge that all my contributions will be made under the project's license  

### this is my first contribution here :-)
fix:Fit perimeter.cpp to guidelines
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant