Returns signed angle between two 3-D vectors in plane spanning them with direction determined either by the right hand rule or specification
https://math.stackexchange.com/questions/2646573/signed-angle-in-n-dimensional-space/3759166#3759166
You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
Cite As
Seth Wagenman (2026). signedAngleTwoVectors (https://uk.mathworks.com/matlabcentral/fileexchange/78300-signedangletwovectors), MATLAB Central File Exchange. Retrieved .
General Information
- Version 3.0 (3.11 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 3.0 | Had order of arguments to atan2 backwards! Also included unit3DNonZeroVectorByRow function and updated instances of oneCaseFlat to oneVecFlag per suggestion. |
||
| 2.0 | Found logic error in sign check; fixed to be row-wise |
||
| 1.2.0 | Cleaned up code a bit and used unit3DNonZeroVectorByRow instead of prior version of that function by same author. |
||
| 1.1.2 | Changed name of file and function to make 3-D explicit. |
||
| 1.1.1 | Got rid of bug when computing dot products of single vectors (rather than matrices of row vectors) as input arguments. |
||
| 1.1.0 | Made code cleaner and variable names more meaningful |
||
| 1.0.2 | debugged check for coplanarity of rotateVec with startVec, endVec |
||
| 1.0.1 | changed last line to calculate beta (returned object) rather than theta |
||
| 1.0.0 |
