[PR #594] [MERGED] [feature] added 3d geometry operations #1031

Open
opened 2026-01-29 15:16:57 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/TheAlgorithms/C/pull/594
Author: @kvedala
Created: 8/17/2020
Status: Merged
Merged: 8/26/2020
Merged by: @ayaankhan98

Base: masterHead: quaternions


📝 Commits (10+)

📊 Changes

6 files changed (+552 additions, -0 deletions)

View changed files

📝 CMakeLists.txt (+1 -0)
📝 DIRECTORY.md (+5 -0)
geometry/CMakeLists.txt (+20 -0)
geometry/geometry_datatypes.h (+115 -0)
geometry/quaternions.c (+173 -0)
geometry/vectors_3d.c (+238 -0)

📄 Description

Description of Change

3D geometry operations using 3D vectors, quaternions and Euler angles.
The code includes pragma definitions to use the hardware floating point operations on for ARM CortexM processors with a hardware floating point unit (FPU).

References

https://github.com/kvedala/libquat and https://kvedala.github.io/libquat

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/594 **Author:** [@kvedala](https://github.com/kvedala) **Created:** 8/17/2020 **Status:** ✅ Merged **Merged:** 8/26/2020 **Merged by:** [@ayaankhan98](https://github.com/ayaankhan98) **Base:** `master` ← **Head:** `quaternions` --- ### 📝 Commits (10+) - [`b02072c`](https://github.com/TheAlgorithms/C/commit/b02072c479107ee7a1ef3eb99a06b403561b4e03) added geomety folder - [`b925152`](https://github.com/TheAlgorithms/C/commit/b925152b5cfc67fd2fb3f29b15a7a42ea963f76c) fix cmake - [`0aec326`](https://github.com/TheAlgorithms/C/commit/0aec326c4f8424077110857a9c31fb666b6bf5c9) added geometry datatypes - [`1610a09`](https://github.com/TheAlgorithms/C/commit/1610a09e48924f46dca9744e49e850c3a8df058d) added vector operations file - [`b75a201`](https://github.com/TheAlgorithms/C/commit/b75a201fdbbe2c3ee2d2a9fded2aca028d6dbc71) added quaternions operations - [`3b9968e`](https://github.com/TheAlgorithms/C/commit/3b9968e59563c078a0fe1fb4b9f2cc8494fa9fbb) fix file doc brief - [`d2c867f`](https://github.com/TheAlgorithms/C/commit/d2c867f02e0abf5123df39c1e537123bd2c650ba) replace fabs with fabsf - [`956e87f`](https://github.com/TheAlgorithms/C/commit/956e87fccef4b06dda2c5641a67dbfba2c671990) undo fabs change to vectors - [`0f541b2`](https://github.com/TheAlgorithms/C/commit/0f541b2604f3fd65e01e12252307d8427691d3bc) use fabs and explicitly mark variables as floating point - [`7ed1ee9`](https://github.com/TheAlgorithms/C/commit/7ed1ee96d691fd9e08b9f279ddc737b50d0102cb) updating DIRECTORY.md ### 📊 Changes **6 files changed** (+552 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `CMakeLists.txt` (+1 -0) 📝 `DIRECTORY.md` (+5 -0) ➕ `geometry/CMakeLists.txt` (+20 -0) ➕ `geometry/geometry_datatypes.h` (+115 -0) ➕ `geometry/quaternions.c` (+173 -0) ➕ `geometry/vectors_3d.c` (+238 -0) </details> ### 📄 Description #### Description of Change <!-- Thank you for your Pull Request. Please provide a description above and review the requirements below. Contributors guide: https://github.com/TheAlgorithms/C-Plus-Plus/CONTRIBUTING.md --> 3D geometry operations using 3D vectors, quaternions and Euler angles. The code includes pragma definitions to use the hardware floating point operations on for ARM CortexM processors with a hardware floating point unit (FPU). #### References <!-- Add any reference to previous pull-request or issue --> https://github.com/kvedala/libquat and https://kvedala.github.io/libquat #### 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-Plus-Plus/blob/master/CONTRIBUTING.md#New-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-Plus-Plus/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/594"><img src="https://gitpod.io/api/apps/github/pbs/github.com/kvedala/C.git/dd19e0387cfd858b3a1ed37e62afb2635e758cea.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:16:57 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/C#1031