[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [39724] trunk/blender/source/blender/ blenlib: remove deprecated & unused mat3_to_vec_rot and mat4_to_vec_rot functions.

Campbell Barton ideasman42 at gmail.com
Sat Aug 27 03:42:53 CEST 2011


Revision: 39724
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=39724
Author:   campbellbarton
Date:     2011-08-27 01:42:49 +0000 (Sat, 27 Aug 2011)
Log Message:
-----------
remove deprecated & unused mat3_to_vec_rot and mat4_to_vec_rot functions.

Modified Paths:
--------------
    trunk/blender/source/blender/blenlib/BLI_math_rotation.h
    trunk/blender/source/blender/blenlib/intern/math_rotation.c

Modified: trunk/blender/source/blender/blenlib/BLI_math_rotation.h
===================================================================
--- trunk/blender/source/blender/blenlib/BLI_math_rotation.h	2011-08-27 01:37:47 UTC (rev 39723)
+++ trunk/blender/source/blender/blenlib/BLI_math_rotation.h	2011-08-27 01:42:49 UTC (rev 39724)
@@ -107,9 +107,6 @@
 /* TODO: the following calls should probably be depreceated sometime         */
 
 /* conversion */
-void mat3_to_vec_rot(float vec[3], float *phi, float mat[3][3]);
-void mat4_to_vec_rot(float vec[3], float *phi, float mat[4][4]);
-
 void vec_rot_to_quat(float quat[4], const float vec[3], const float phi);
 void vec_rot_to_mat3(float mat[3][3], const float vec[3], const float phi);
 void vec_rot_to_mat4(float mat[4][4], const float vec[3], const float phi);

Modified: trunk/blender/source/blender/blenlib/intern/math_rotation.c
===================================================================
--- trunk/blender/source/blender/blenlib/intern/math_rotation.c	2011-08-27 01:37:47 UTC (rev 39723)
+++ trunk/blender/source/blender/blenlib/intern/math_rotation.c	2011-08-27 01:42:49 UTC (rev 39724)
@@ -774,28 +774,6 @@
 /****************************** Vector/Rotation ******************************/
 /* TODO: the following calls should probably be depreceated sometime         */
 
-/* 3x3 matrix to axis angle */
-void mat3_to_vec_rot(float axis[3], float *angle,float mat[3][3])
-{
-	float q[4];
-	
-	/* use quaternions as intermediate representation */
-	// TODO: it would be nicer to go straight there...
-	mat3_to_quat(q,mat);
-	quat_to_axis_angle(axis, angle,q);
-}
-
-/* 4x4 matrix to axis angle */
-void mat4_to_vec_rot(float axis[3], float *angle,float mat[4][4])
-{
-	float q[4];
-	
-	/* use quaternions as intermediate representation */
-	// TODO: it would be nicer to go straight there...
-	mat4_to_quat(q,mat);
-	quat_to_axis_angle(axis, angle,q);
-}
-
 /* axis angle to 3x3 matrix */
 void vec_rot_to_mat3(float mat[][3], const float vec[3], const float phi)
 {




More information about the Bf-blender-cvs mailing list