diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-12-15 12:39:46 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-12-15 12:39:46 +0300 |
commit | 7fc799d4a9c52254390e5df2942c73831ca7e5ac (patch) | |
tree | c265c60e3cff3913d280f6229b9eae01cc91e44b /source/blender/blenlib/BLI_math_vector.h | |
parent | 55898c04fd4935de5610242bfb259f30e58b0413 (diff) |
utility functions for getting the corner angles of a quad or tri: angle_quad_v3 & angle_tri_v3
Diffstat (limited to 'source/blender/blenlib/BLI_math_vector.h')
-rw-r--r-- | source/blender/blenlib/BLI_math_vector.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_math_vector.h b/source/blender/blenlib/BLI_math_vector.h index 399c234a108..e915a9a85f3 100644 --- a/source/blender/blenlib/BLI_math_vector.h +++ b/source/blender/blenlib/BLI_math_vector.h @@ -131,6 +131,8 @@ float angle_normalized_v2v2(float a[2], float b[2]); float angle_v3v3(float a[2], float b[2]); float angle_v3v3v3(float a[2], float b[2], float c[2]); float angle_normalized_v3v3(float a[3], float b[3]); +void angle_tri_v3(float angles[3], const float v1[3], const float v2[3], const float v3[3]); +void angle_quad_v3(float angles[4], const float v1[3], const float v2[3], const float v3[3], const float v4[3]); /********************************* Geometry **********************************/ |