From 95a9646c00a1cbf727f24c506c4aeffe99016352 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 30 Apr 2019 14:41:33 +1000 Subject: Cleanup: comments (long lines) in physics --- source/blender/physics/intern/implicit_eigen.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'source/blender/physics/intern/implicit_eigen.cpp') diff --git a/source/blender/physics/intern/implicit_eigen.cpp b/source/blender/physics/intern/implicit_eigen.cpp index cfa3d653961..04ca24e0382 100644 --- a/source/blender/physics/intern/implicit_eigen.cpp +++ b/source/blender/physics/intern/implicit_eigen.cpp @@ -182,8 +182,9 @@ typedef Eigen::SparseMatrix lMatrix; /* Constructor type that provides more convenient handling of Eigen triplets * for efficient construction of sparse 3x3 block matrices. - * This should be used for building lMatrix instead of writing to such lMatrix directly (which is very inefficient). - * After all elements have been defined using the set() method, the actual matrix can be filled using construct(). + * This should be used for building lMatrix instead of writing to such lMatrix directly (which is + * very inefficient). After all elements have been defined using the set() method, the actual + * matrix can be filled using construct(). */ struct lMatrixCtor { lMatrixCtor() @@ -814,7 +815,8 @@ static float calc_nor_area_tri(float nor[3], return normalize_v3(nor); } -/* XXX does not support force jacobians yet, since the effector system does not provide them either */ +/* XXX does not support force jacobians yet, + * since the effector system does not provide them either. */ void BPH_mass_spring_force_face_wind( Implicit_Data *data, int v1, int v2, int v3, const float (*winvec)[3]) { @@ -855,8 +857,8 @@ void BPH_mass_spring_force_edge_wind(Implicit_Data *data, int v1, int v2, const BLI_INLINE void dfdx_spring(float to[3][3], const float dir[3], float length, float L, float k) { - // dir is unit length direction, rest is spring's restlength, k is spring constant. - //return ( (I-outerprod(dir, dir))*Min(1.0f, rest/length) - I) * -k; + /* dir is unit length direction, rest is spring's restlength, k is spring constant. */ + // return ((I - outerprod(dir, dir)) * Min(1.0f, rest / length) - I) * -k; outerproduct(to, dir, dir); sub_m3_m3m3(to, I, to); -- cgit v1.2.3