[PR #838] [MERGED] tests: added get_angle test function in geometry/vector3d #1349

Closed
opened 2026-01-29 15:19:35 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/TheAlgorithms/C/pull/838
Author: @lasgel
Created: 6/29/2021
Status: Merged
Merged: 7/9/2021
Merged by: @Panquesito7

Base: masterHead: master


📝 Commits (10+)

  • 26e7766 feat: add get_angle algorithm
  • 3414523 docs: added documentation for get_angle algorithm
  • a44b2f5 test: add test for get_angle algorithm
  • c6f81bf fix: Fixed indentation
  • f940a17 Test: Changed //printf to // printf
  • b9abb26 fix: Changed variable description for norm_a and norm_b
  • 4072ec5 fix: changed // to /// in the comment as suggested
  • caf17d1 Apply suggestions from code review
  • 0b09a91 Apply suggestions from code review
  • b2b666c Apply suggestions from code review

📊 Changes

1 file changed (+27 additions, -0 deletions)

View changed files

📝 geometry/vectors_3d.c (+27 -0)

📄 Description

Description of Change

a function get_angle is added for the vector3d to calculate the angle between two given vector
test and doc added for this function as well

References

Checklist

  • Added description of change
  • Added file name matches File name guidelines
  • Added tests and example, test must pass
  • Relevant documentation/comments is changed or added
  • PR title follows semantic commit guidelines
  • Search previous suggestions before making a new one, as yours may be a duplicate.
  • I acknowledge that all my contributions will be made under the project's license.

Notes:


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/TheAlgorithms/C/pull/838 **Author:** [@lasgel](https://github.com/lasgel) **Created:** 6/29/2021 **Status:** ✅ Merged **Merged:** 7/9/2021 **Merged by:** [@Panquesito7](https://github.com/Panquesito7) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (10+) - [`26e7766`](https://github.com/TheAlgorithms/C/commit/26e7766415c99f33f45caa0d039857231361d990) feat: add get_angle algorithm - [`3414523`](https://github.com/TheAlgorithms/C/commit/34145239ed9bd36b0a421488b433302f630253b2) docs: added documentation for get_angle algorithm - [`a44b2f5`](https://github.com/TheAlgorithms/C/commit/a44b2f53a65e02600ad4ad58f2f06c7cf1aa3560) test: add test for get_angle algorithm - [`c6f81bf`](https://github.com/TheAlgorithms/C/commit/c6f81bf2bbd2f1862ac7527b50e317151662ede0) fix: Fixed indentation - [`f940a17`](https://github.com/TheAlgorithms/C/commit/f940a17bef3f353571fb5056a07f4930b6de104f) Test: Changed //printf to // printf - [`b9abb26`](https://github.com/TheAlgorithms/C/commit/b9abb26aa3b6b4e569d054b2f87204c2dbe92fa8) fix: Changed variable description for norm_a and norm_b - [`4072ec5`](https://github.com/TheAlgorithms/C/commit/4072ec52f874663917c0e66aabdbc3a38376abcf) fix: changed // to /// in the comment as suggested - [`caf17d1`](https://github.com/TheAlgorithms/C/commit/caf17d177aa2791f76398aec9af67465965bac02) Apply suggestions from code review - [`0b09a91`](https://github.com/TheAlgorithms/C/commit/0b09a9139a6c67e28e407c8cc2475d0753ee2bd9) Apply suggestions from code review - [`b2b666c`](https://github.com/TheAlgorithms/C/commit/b2b666c129f09bed1683dfb64c68a7ff9e74bc3b) Apply suggestions from code review ### 📊 Changes **1 file changed** (+27 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `geometry/vectors_3d.c` (+27 -0) </details> ### 📄 Description #### Description of Change a function get_angle is added for the vector3d to calculate the angle between two given vector test and doc added for this function as well <!-- Thank you for your Pull Request. Please provide a description above and review the requirements below. Contributors guide: https://github.com/TheAlgorithms/C/blob/master/CONTRIBUTING.md --> #### References <!-- Add any reference to previous pull-request or issue --> #### Checklist <!-- Remove items that do not apply. For completed items, change [ ] to [x]. --> - [x] Added description of change - [x] Added file name matches [File name guidelines](https://github.com/TheAlgorithms/C/blob/master/CONTRIBUTING.md#File-Name-guidelines) - [x] Added tests and example, test must pass - [x] Relevant documentation/comments is changed or added - [x] PR title follows semantic [commit guidelines](https://github.com/TheAlgorithms/C/blob/master/CONTRIBUTING.md#Commit-Guidelines) - [x] Search previous suggestions before making a new one, as yours may be a duplicate. - [x] I acknowledge that all my contributions will be made under the project's license. Notes: <!-- Please add a one-line description for developers or pull request viewers --> <a href="https://gitpod.io/#https://github.com/TheAlgorithms/C/pull/838"><img src="https://gitpod.io/button/open-in-gitpod.svg"/></a> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-29 15:19:35 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/C#1349