Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Swaney <sswaney@centurytel.net>2004-09-26 00:30:40 +0400
committerStephen Swaney <sswaney@centurytel.net>2004-09-26 00:30:40 +0400
commita509b8adc9b8952cdb395c69406e821f57a9a6c7 (patch)
tree7c0e3c7b81007acc6b3e268e59a6af5fcb4bd93f /source/blender/python/api2_2x/Mathutils.h
parentbd371ddb9ff947d4e598ad04af9402d89fa80d5e (diff)
Another round in the Great BPy Cleanup:
Run everything thru indent to cleanup spaces vs tabs. Clean up some of the comments by hand. BGL.c was not touched due to all that macro wackyness. There are no functional changes to the code. Pre-indent versions of source are tagged with tag bpy-cleanup-20040925 , just in case.
Diffstat (limited to 'source/blender/python/api2_2x/Mathutils.h')
-rw-r--r--source/blender/python/api2_2x/Mathutils.h246
1 files changed, 126 insertions, 120 deletions
diff --git a/source/blender/python/api2_2x/Mathutils.h b/source/blender/python/api2_2x/Mathutils.h
index 1d4dd544dea..9a0e30b2eaf 100644
--- a/source/blender/python/api2_2x/Mathutils.h
+++ b/source/blender/python/api2_2x/Mathutils.h
@@ -53,153 +53,159 @@
/*****************************************************************************/
-// Python API function prototypes for the Mathutils module.
+// Python API function prototypes for the Mathutils module.
/*****************************************************************************/
-static PyObject *M_Mathutils_Rand (PyObject *self, PyObject *args);
-static PyObject *M_Mathutils_Vector(PyObject *self, PyObject *args);
-static PyObject *M_Mathutils_CrossVecs(PyObject *self, PyObject *args);
-static PyObject *M_Mathutils_DotVecs (PyObject *self, PyObject *args);
-static PyObject *M_Mathutils_AngleBetweenVecs(PyObject *self, PyObject *args);
-static PyObject *M_Mathutils_MidpointVecs(PyObject *self, PyObject *args);
-static PyObject *M_Mathutils_VecMultMat(PyObject *self, PyObject *args);
-static PyObject *M_Mathutils_ProjectVecs(PyObject *self, PyObject *args);
-static PyObject *M_Mathutils_CopyVec(PyObject *self, PyObject *args);
-static PyObject *M_Mathutils_Matrix(PyObject *self, PyObject *args);
-static PyObject *M_Mathutils_RotationMatrix(PyObject *self, PyObject *args);
-static PyObject *M_Mathutils_ScaleMatrix(PyObject *self, PyObject *args);
-static PyObject *M_Mathutils_OrthoProjectionMatrix(PyObject *self, PyObject *args);
-static PyObject *M_Mathutils_ShearMatrix(PyObject *self, PyObject *args);
-static PyObject *M_Mathutils_TranslationMatrix(PyObject *self, PyObject *args);
-static PyObject *M_Mathutils_MatMultVec(PyObject *self, PyObject *args);
-static PyObject *M_Mathutils_CopyMat(PyObject *self, PyObject *args);
-static PyObject *M_Mathutils_Quaternion(PyObject *self, PyObject *args);
-static PyObject *M_Mathutils_CrossQuats(PyObject *self, PyObject *args);
-static PyObject *M_Mathutils_DotQuats(PyObject *self, PyObject *args);
-static PyObject *M_Mathutils_CopyQuat(PyObject *self, PyObject *args);
-static PyObject *M_Mathutils_DifferenceQuats(PyObject *self, PyObject *args);
-static PyObject *M_Mathutils_Slerp(PyObject *self, PyObject *args);
-static PyObject *M_Mathutils_Euler(PyObject *self, PyObject *args);
-static PyObject *M_Mathutils_CopyEuler(PyObject *self, PyObject *args);
-static PyObject *M_Mathutils_RotateEuler(PyObject *self, PyObject *args);
+static PyObject *M_Mathutils_Rand( PyObject * self, PyObject * args );
+static PyObject *M_Mathutils_Vector( PyObject * self, PyObject * args );
+static PyObject *M_Mathutils_CrossVecs( PyObject * self, PyObject * args );
+static PyObject *M_Mathutils_DotVecs( PyObject * self, PyObject * args );
+static PyObject *M_Mathutils_AngleBetweenVecs( PyObject * self,
+ PyObject * args );
+static PyObject *M_Mathutils_MidpointVecs( PyObject * self, PyObject * args );
+static PyObject *M_Mathutils_VecMultMat( PyObject * self, PyObject * args );
+static PyObject *M_Mathutils_ProjectVecs( PyObject * self, PyObject * args );
+static PyObject *M_Mathutils_CopyVec( PyObject * self, PyObject * args );
+static PyObject *M_Mathutils_Matrix( PyObject * self, PyObject * args );
+static PyObject *M_Mathutils_RotationMatrix( PyObject * self,
+ PyObject * args );
+static PyObject *M_Mathutils_ScaleMatrix( PyObject * self, PyObject * args );
+static PyObject *M_Mathutils_OrthoProjectionMatrix( PyObject * self,
+ PyObject * args );
+static PyObject *M_Mathutils_ShearMatrix( PyObject * self, PyObject * args );
+static PyObject *M_Mathutils_TranslationMatrix( PyObject * self,
+ PyObject * args );
+static PyObject *M_Mathutils_MatMultVec( PyObject * self, PyObject * args );
+static PyObject *M_Mathutils_CopyMat( PyObject * self, PyObject * args );
+static PyObject *M_Mathutils_Quaternion( PyObject * self, PyObject * args );
+static PyObject *M_Mathutils_CrossQuats( PyObject * self, PyObject * args );
+static PyObject *M_Mathutils_DotQuats( PyObject * self, PyObject * args );
+static PyObject *M_Mathutils_CopyQuat( PyObject * self, PyObject * args );
+static PyObject *M_Mathutils_DifferenceQuats( PyObject * self,
+ PyObject * args );
+static PyObject *M_Mathutils_Slerp( PyObject * self, PyObject * args );
+static PyObject *M_Mathutils_Euler( PyObject * self, PyObject * args );
+static PyObject *M_Mathutils_CopyEuler( PyObject * self, PyObject * args );
+static PyObject *M_Mathutils_RotateEuler( PyObject * self, PyObject * args );
/*****************************************************************************/
-// The following string definitions are used for documentation strings.
-// In Python these will be written to the console when doing a
-// Blender.Mathutils.__doc__ Mathutils Module strings */
-/*****************************************************************************/
-static char M_Mathutils_doc[] =
-"The Blender Mathutils module\n\n";
+// The following string definitions are used for documentation strings.
+// In Python these will be written to the console when doing a
+// Blender.Mathutils.__doc__
+/* Mathutils Module strings */
+/****************************************************************************/
+static char M_Mathutils_doc[] = "The Blender Mathutils module\n\n";
static char M_Mathutils_Vector_doc[] =
-"() - create a new vector object from a list of floats";
+ "() - create a new vector object from a list of floats";
static char M_Mathutils_Matrix_doc[] =
-"() - create a new matrix object from a list of floats";
+ "() - create a new matrix object from a list of floats";
static char M_Mathutils_Quaternion_doc[] =
-"() - create a quaternion from a list or an axis of rotation and an angle";
+ "() - create a quaternion from a list or an axis of rotation and an angle";
static char M_Mathutils_Euler_doc[] =
-"() - create and return a new euler object";
-static char M_Mathutils_Rand_doc[] =
-"() - return a random number";
+ "() - create and return a new euler object";
+static char M_Mathutils_Rand_doc[] = "() - return a random number";
static char M_Mathutils_CrossVecs_doc[] =
-"() - returns a vector perpedicular to the 2 vectors crossed";
-static char M_Mathutils_CopyVec_doc[] =
-"() - create a copy of vector";
+ "() - returns a vector perpedicular to the 2 vectors crossed";
+static char M_Mathutils_CopyVec_doc[] = "() - create a copy of vector";
static char M_Mathutils_DotVecs_doc[] =
-"() - return the dot product of two vectors";
+ "() - return the dot product of two vectors";
static char M_Mathutils_AngleBetweenVecs_doc[] =
-"() - returns the angle between two vectors in degrees";
+ "() - returns the angle between two vectors in degrees";
static char M_Mathutils_MidpointVecs_doc[] =
-"() - return the vector to the midpoint between two vectors";
+ "() - return the vector to the midpoint between two vectors";
static char M_Mathutils_MatMultVec_doc[] =
-"() - multiplies a matrix by a column vector";
+ "() - multiplies a matrix by a column vector";
static char M_Mathutils_VecMultMat_doc[] =
-"() - multiplies a row vector by a matrix";
+ "() - multiplies a row vector by a matrix";
static char M_Mathutils_ProjectVecs_doc[] =
-"() - returns the projection vector from the projection of vecA onto vecB";
+ "() - returns the projection vector from the projection of vecA onto vecB";
static char M_Mathutils_RotationMatrix_doc[] =
-"() - construct a rotation matrix from an angle and axis of rotation";
+ "() - construct a rotation matrix from an angle and axis of rotation";
static char M_Mathutils_ScaleMatrix_doc[] =
-"() - construct a scaling matrix from a scaling factor";
+ "() - construct a scaling matrix from a scaling factor";
static char M_Mathutils_OrthoProjectionMatrix_doc[] =
-"() - construct a orthographic projection matrix from a selected plane";
+ "() - construct a orthographic projection matrix from a selected plane";
static char M_Mathutils_ShearMatrix_doc[] =
-"() - construct a shearing matrix from a plane of shear and a shear factor";
-static char M_Mathutils_CopyMat_doc[] =
-"() - create a copy of a matrix";
+ "() - construct a shearing matrix from a plane of shear and a shear factor";
+static char M_Mathutils_CopyMat_doc[] = "() - create a copy of a matrix";
static char M_Mathutils_TranslationMatrix_doc[] =
-"() - create a translation matrix from a vector";
-static char M_Mathutils_CopyQuat_doc[] =
-"() - copy quatB to quatA";
-static char M_Mathutils_CopyEuler_doc[] =
-"() - copy eulB to eultA";
+ "() - create a translation matrix from a vector";
+static char M_Mathutils_CopyQuat_doc[] = "() - copy quatB to quatA";
+static char M_Mathutils_CopyEuler_doc[] = "() - copy eulB to eultA";
static char M_Mathutils_CrossQuats_doc[] =
-"() - return the mutliplication of two quaternions";
+ "() - return the mutliplication of two quaternions";
static char M_Mathutils_DotQuats_doc[] =
-"() - return the dot product of two quaternions";
+ "() - return the dot product of two quaternions";
static char M_Mathutils_Slerp_doc[] =
-"() - returns the interpolation between two quaternions";
+ "() - returns the interpolation between two quaternions";
static char M_Mathutils_DifferenceQuats_doc[] =
-"() - return the angular displacment difference between two quats";
+ "() - return the angular displacment difference between two quats";
static char M_Mathutils_RotateEuler_doc[] =
-"() - rotate euler by an axis and angle";
+ "() - rotate euler by an axis and angle";
-/*****************************************************************************/
-// Python method structure definition for Blender.Mathutils module:
-/*****************************************************************************/
+/****************************************************************************/
+// Python method structure definition for Blender.Mathutils module:
+/****************************************************************************/
struct PyMethodDef M_Mathutils_methods[] = {
- {"Rand",(PyCFunction)M_Mathutils_Rand, METH_VARARGS,
- M_Mathutils_Rand_doc},
- {"Vector",(PyCFunction)M_Mathutils_Vector, METH_VARARGS,
- M_Mathutils_Vector_doc},
- {"CrossVecs",(PyCFunction)M_Mathutils_CrossVecs, METH_VARARGS,
- M_Mathutils_CrossVecs_doc},
- {"DotVecs",(PyCFunction)M_Mathutils_DotVecs, METH_VARARGS,
- M_Mathutils_DotVecs_doc},
- {"AngleBetweenVecs",(PyCFunction)M_Mathutils_AngleBetweenVecs, METH_VARARGS,
- M_Mathutils_AngleBetweenVecs_doc},
- {"MidpointVecs",(PyCFunction)M_Mathutils_MidpointVecs, METH_VARARGS,
- M_Mathutils_MidpointVecs_doc},
- {"VecMultMat",(PyCFunction)M_Mathutils_VecMultMat, METH_VARARGS,
- M_Mathutils_VecMultMat_doc},
- {"ProjectVecs",(PyCFunction)M_Mathutils_ProjectVecs, METH_VARARGS,
- M_Mathutils_ProjectVecs_doc},
- {"CopyVec",(PyCFunction)M_Mathutils_CopyVec, METH_VARARGS,
- M_Mathutils_CopyVec_doc},
- {"Matrix",(PyCFunction)M_Mathutils_Matrix, METH_VARARGS,
- M_Mathutils_Matrix_doc},
- {"RotationMatrix",(PyCFunction)M_Mathutils_RotationMatrix, METH_VARARGS,
- M_Mathutils_RotationMatrix_doc},
- {"ScaleMatrix",(PyCFunction)M_Mathutils_ScaleMatrix, METH_VARARGS,
- M_Mathutils_ScaleMatrix_doc},
- {"ShearMatrix",(PyCFunction)M_Mathutils_ShearMatrix, METH_VARARGS,
- M_Mathutils_ShearMatrix_doc},
- {"TranslationMatrix",(PyCFunction)M_Mathutils_TranslationMatrix, METH_VARARGS,
- M_Mathutils_TranslationMatrix_doc},
- {"CopyMat",(PyCFunction)M_Mathutils_CopyMat, METH_VARARGS,
- M_Mathutils_CopyMat_doc},
- {"OrthoProjectionMatrix",(PyCFunction)M_Mathutils_OrthoProjectionMatrix, METH_VARARGS,
- M_Mathutils_OrthoProjectionMatrix_doc},
- {"MatMultVec",(PyCFunction)M_Mathutils_MatMultVec, METH_VARARGS,
- M_Mathutils_MatMultVec_doc},
- {"Quaternion",(PyCFunction)M_Mathutils_Quaternion, METH_VARARGS,
- M_Mathutils_Quaternion_doc},
- {"CopyQuat",(PyCFunction)M_Mathutils_CopyQuat, METH_VARARGS,
- M_Mathutils_CopyQuat_doc},
- {"CrossQuats",(PyCFunction)M_Mathutils_CrossQuats, METH_VARARGS,
- M_Mathutils_CrossQuats_doc},
- {"DotQuats",(PyCFunction)M_Mathutils_DotQuats, METH_VARARGS,
- M_Mathutils_DotQuats_doc},
- {"DifferenceQuats",(PyCFunction)M_Mathutils_DifferenceQuats, METH_VARARGS,
- M_Mathutils_DifferenceQuats_doc},
- {"Slerp",(PyCFunction)M_Mathutils_Slerp, METH_VARARGS,
- M_Mathutils_Slerp_doc},
- {"Euler",(PyCFunction)M_Mathutils_Euler, METH_VARARGS,
- M_Mathutils_Euler_doc},
- {"CopyEuler",(PyCFunction)M_Mathutils_CopyEuler, METH_VARARGS,
- M_Mathutils_CopyEuler_doc},
- {"RotateEuler",(PyCFunction)M_Mathutils_RotateEuler, METH_VARARGS,
- M_Mathutils_RotateEuler_doc},
+ {"Rand", ( PyCFunction ) M_Mathutils_Rand, METH_VARARGS,
+ M_Mathutils_Rand_doc},
+ {"Vector", ( PyCFunction ) M_Mathutils_Vector, METH_VARARGS,
+ M_Mathutils_Vector_doc},
+ {"CrossVecs", ( PyCFunction ) M_Mathutils_CrossVecs, METH_VARARGS,
+ M_Mathutils_CrossVecs_doc},
+ {"DotVecs", ( PyCFunction ) M_Mathutils_DotVecs, METH_VARARGS,
+ M_Mathutils_DotVecs_doc},
+ {"AngleBetweenVecs", ( PyCFunction ) M_Mathutils_AngleBetweenVecs,
+ METH_VARARGS,
+ M_Mathutils_AngleBetweenVecs_doc},
+ {"MidpointVecs", ( PyCFunction ) M_Mathutils_MidpointVecs,
+ METH_VARARGS,
+ M_Mathutils_MidpointVecs_doc},
+ {"VecMultMat", ( PyCFunction ) M_Mathutils_VecMultMat, METH_VARARGS,
+ M_Mathutils_VecMultMat_doc},
+ {"ProjectVecs", ( PyCFunction ) M_Mathutils_ProjectVecs, METH_VARARGS,
+ M_Mathutils_ProjectVecs_doc},
+ {"CopyVec", ( PyCFunction ) M_Mathutils_CopyVec, METH_VARARGS,
+ M_Mathutils_CopyVec_doc},
+ {"Matrix", ( PyCFunction ) M_Mathutils_Matrix, METH_VARARGS,
+ M_Mathutils_Matrix_doc},
+ {"RotationMatrix", ( PyCFunction ) M_Mathutils_RotationMatrix,
+ METH_VARARGS,
+ M_Mathutils_RotationMatrix_doc},
+ {"ScaleMatrix", ( PyCFunction ) M_Mathutils_ScaleMatrix, METH_VARARGS,
+ M_Mathutils_ScaleMatrix_doc},
+ {"ShearMatrix", ( PyCFunction ) M_Mathutils_ShearMatrix, METH_VARARGS,
+ M_Mathutils_ShearMatrix_doc},
+ {"TranslationMatrix", ( PyCFunction ) M_Mathutils_TranslationMatrix,
+ METH_VARARGS,
+ M_Mathutils_TranslationMatrix_doc},
+ {"CopyMat", ( PyCFunction ) M_Mathutils_CopyMat, METH_VARARGS,
+ M_Mathutils_CopyMat_doc},
+ {"OrthoProjectionMatrix",
+ ( PyCFunction ) M_Mathutils_OrthoProjectionMatrix, METH_VARARGS,
+ M_Mathutils_OrthoProjectionMatrix_doc},
+ {"MatMultVec", ( PyCFunction ) M_Mathutils_MatMultVec, METH_VARARGS,
+ M_Mathutils_MatMultVec_doc},
+ {"Quaternion", ( PyCFunction ) M_Mathutils_Quaternion, METH_VARARGS,
+ M_Mathutils_Quaternion_doc},
+ {"CopyQuat", ( PyCFunction ) M_Mathutils_CopyQuat, METH_VARARGS,
+ M_Mathutils_CopyQuat_doc},
+ {"CrossQuats", ( PyCFunction ) M_Mathutils_CrossQuats, METH_VARARGS,
+ M_Mathutils_CrossQuats_doc},
+ {"DotQuats", ( PyCFunction ) M_Mathutils_DotQuats, METH_VARARGS,
+ M_Mathutils_DotQuats_doc},
+ {"DifferenceQuats", ( PyCFunction ) M_Mathutils_DifferenceQuats,
+ METH_VARARGS,
+ M_Mathutils_DifferenceQuats_doc},
+ {"Slerp", ( PyCFunction ) M_Mathutils_Slerp, METH_VARARGS,
+ M_Mathutils_Slerp_doc},
+ {"Euler", ( PyCFunction ) M_Mathutils_Euler, METH_VARARGS,
+ M_Mathutils_Euler_doc},
+ {"CopyEuler", ( PyCFunction ) M_Mathutils_CopyEuler, METH_VARARGS,
+ M_Mathutils_CopyEuler_doc},
+ {"RotateEuler", ( PyCFunction ) M_Mathutils_RotateEuler, METH_VARARGS,
+ M_Mathutils_RotateEuler_doc},
{NULL, NULL, 0, NULL}
};
-#endif /* EXPP_Mathutils_H */
+#endif /* EXPP_Mathutils_H */