From f6604f7612af998ee275fa0650c5c56f6d208074 Mon Sep 17 00:00:00 2001 From: Antony Riakiotakis Date: Mon, 15 Apr 2013 14:55:42 +0000 Subject: New implementation for twist brushes. It has much better rotation and avoids the compression effect that old twist brushes have. Also twisting is now non periodic, meaning you can twist beyond 180 degrees. The amount of twist is also calculated relative to the angle formed after first translating the mouse away from the brush center. --- source/blender/blenlib/BLI_math_rotation.h | 1 + 1 file changed, 1 insertion(+) (limited to 'source/blender/blenlib/BLI_math_rotation.h') diff --git a/source/blender/blenlib/BLI_math_rotation.h b/source/blender/blenlib/BLI_math_rotation.h index d35ef05a7a4..45ec044ff92 100644 --- a/source/blender/blenlib/BLI_math_rotation.h +++ b/source/blender/blenlib/BLI_math_rotation.h @@ -97,6 +97,7 @@ void print_qt(const char *str, const float q[4]); /* conversion */ void axis_angle_to_quat(float r[4], const float axis[3], const float angle); void axis_angle_to_mat3(float R[3][3], const float axis[3], const float angle); +void axis_angle_to_mat3_no_norm(float R[3][3], const float axis[3], const float angle); void axis_angle_to_mat4(float R[4][4], const float axis[3], const float angle); void quat_to_axis_angle(float axis[3], float *angle, const float q[4]); -- cgit v1.2.3