Revision: 35989
          
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=35989
Author:   campbellbarton
Date:     2011-04-04 05:17:23 +0000 (Mon, 04 Apr 2011)
Log Message:
-----------
rename mathutils.Vector/Quaternion difference() method to rotation_difference() 
since its too vague when applied to vectors.

Modified Paths:
--------------
    trunk/blender/source/blender/python/generic/mathutils_Quaternion.c
    trunk/blender/source/blender/python/generic/mathutils_Vector.c

Modified: trunk/blender/source/blender/python/generic/mathutils_Quaternion.c
===================================================================
--- trunk/blender/source/blender/python/generic/mathutils_Quaternion.c  
2011-04-04 04:54:41 UTC (rev 35988)
+++ trunk/blender/source/blender/python/generic/mathutils_Quaternion.c  
2011-04-04 05:17:23 UTC (rev 35989)
@@ -189,7 +189,7 @@
        return PyFloat_FromDouble(dot_qtqt(self->quat, tquat));
 }
 
-static char Quaternion_difference_doc[] =
+static char Quaternion_rotation_difference_doc[] =
 ".. function:: difference(other)\n"
 "\n"
 "   Returns a quaternion representing the rotational difference.\n"
@@ -199,7 +199,7 @@
 "   :return: the rotational difference between the two quat rotations.\n"
 "   :rtype: :class:`Quaternion`\n"
 ;
-static PyObject *Quaternion_difference(QuaternionObject *self, PyObject *value)
+static PyObject *Quaternion_rotation_difference(QuaternionObject *self, 
PyObject *value)
 {
        float tquat[QUAT_SIZE], quat[QUAT_SIZE];
 
@@ -1000,7 +1000,7 @@
        /* operation between 2 or more types  */
        {"cross", (PyCFunction) Quaternion_cross, METH_O, Quaternion_cross_doc},
        {"dot", (PyCFunction) Quaternion_dot, METH_O, Quaternion_dot_doc},
-       {"difference", (PyCFunction) Quaternion_difference, METH_O, 
Quaternion_difference_doc},
+       {"rotation_difference", (PyCFunction) Quaternion_rotation_difference, 
METH_O, Quaternion_rotation_difference_doc},
        {"slerp", (PyCFunction) Quaternion_slerp, METH_VARARGS, 
Quaternion_slerp_doc},
        {"rotate", (PyCFunction) Quaternion_rotate, METH_O, 
Quaternion_rotate_doc},
 

Modified: trunk/blender/source/blender/python/generic/mathutils_Vector.c
===================================================================
--- trunk/blender/source/blender/python/generic/mathutils_Vector.c      
2011-04-04 04:54:41 UTC (rev 35988)
+++ trunk/blender/source/blender/python/generic/mathutils_Vector.c      
2011-04-04 05:17:23 UTC (rev 35989)
@@ -615,7 +615,7 @@
        return PyFloat_FromDouble(saacos(dot));
 }
 
-static char Vector_difference_doc[] =
+static char Vector_rotation_difference_doc[] =
 ".. function:: difference(other)\n"
 "\n"
 "   Returns a quaternion representing the rotational difference between this 
vector and another.\n"
@@ -627,7 +627,7 @@
 "\n"
 "   .. note:: 2D vectors raise an :exc:`AttributeError`.\n"
 ;
-static PyObject *Vector_difference(VectorObject *self, PyObject *value)
+static PyObject *Vector_rotation_difference(VectorObject *self, PyObject 
*value)
 {
        float quat[4], vec_a[3], vec_b[3];
 
@@ -2136,7 +2136,7 @@
        {"cross", (PyCFunction) Vector_cross, METH_O, Vector_cross_doc},
        {"dot", (PyCFunction) Vector_dot, METH_O, Vector_dot_doc},
        {"angle", (PyCFunction) Vector_angle, METH_VARARGS, Vector_angle_doc},
-       {"difference", (PyCFunction) Vector_difference, METH_O, 
Vector_difference_doc},
+       {"rotation_difference", (PyCFunction) Vector_rotation_difference, 
METH_O, Vector_rotation_difference_doc},
        {"project", (PyCFunction) Vector_project, METH_O, Vector_project_doc},
        {"lerp", (PyCFunction) Vector_lerp, METH_VARARGS, Vector_lerp_doc},
        {"rotate", (PyCFunction) Vector_rotate, METH_O, Vector_rotate_doc},

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to