diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-09-29 09:15:55 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-09-29 09:15:55 +0400 |
commit | 7a950c287692dc44edc23eb9daf865de8e115307 (patch) | |
tree | 413a5b8330c0e7344a897c13ae2d6e309a0f91b1 /source/blender/blenlib/BLI_math_vector.h | |
parent | 2b59013490da8f60420c254d1c84d921c61e9c8c (diff) |
patch from Dan Eicher with some edirts.
vec.rotate(axis, angle)
equivalent to...
vec[:] = vec * mathutils.Quaternion(axis, angle)
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 25f58787a43..215ddf2f2d9 100644 --- a/source/blender/blenlib/BLI_math_vector.h +++ b/source/blender/blenlib/BLI_math_vector.h @@ -148,6 +148,8 @@ void project_v3_v3v3(float r[3], const float p[3], const float n[3]); void reflect_v3_v3v3(float r[3], const float v[3], const float n[3]); void ortho_basis_v3v3_v3(float r1[3], float r2[3], const float a[3]); void bisect_v3_v3v3v3(float r[3], const float a[3], const float b[3], const float c[3]); +void rotate_v3_v3v3fl(float v[3], const float p[3], const float axis[3], const float angle); +void rotate_normalized_v3_v3v3fl(float v[3], const float p[3], const float axis[3], const float angle); /*********************************** Other ***********************************/ |