diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-10-10 00:39:59 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-10-10 00:44:03 +0400 |
commit | 30dab51c29e863d3f605343f6308c71d0a6d3ce1 (patch) | |
tree | 5bb2f3ca81cff63ac0529277114bb373ebb5424a /source/blender/blenlib/BLI_math_geom.h | |
parent | ad4980ce5e411e094bd2ccb67dfab4d1fa697a83 (diff) |
Cleanup: use bool and const args
Diffstat (limited to 'source/blender/blenlib/BLI_math_geom.h')
-rw-r--r-- | source/blender/blenlib/BLI_math_geom.h | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/source/blender/blenlib/BLI_math_geom.h b/source/blender/blenlib/BLI_math_geom.h index 81ca2908619..ba32b29becc 100644 --- a/source/blender/blenlib/BLI_math_geom.h +++ b/source/blender/blenlib/BLI_math_geom.h @@ -275,17 +275,22 @@ void map_to_sphere(float *r_u, float *r_v, const float x, const float y, const f /********************************** Normals **********************************/ -void accumulate_vertex_normals(float n1[3], float n2[3], float n3[3], - float n4[3], const float f_no[3], const float co1[3], const float co2[3], - const float co3[3], const float co4[3]); +void accumulate_vertex_normals( + float n1[3], float n2[3], float n3[3], float n4[3], + const float f_no[3], + const float co1[3], const float co2[3], const float co3[3], const float co4[3]); -void accumulate_vertex_normals_poly(float **vertnos, const float polyno[3], - const float **vertcos, float vdiffs[][3], const int nverts); +void accumulate_vertex_normals_poly( + float **vertnos, const float polyno[3], + const float **vertcos, float vdiffs[][3], const int nverts); /********************************* Tangents **********************************/ -void tangent_from_uv(float uv1[2], float uv2[2], float uv3[2], - float co1[3], float co2[3], float co3[3], float n[3], float tang[3]); +void tangent_from_uv( + const float uv1[2], const float uv2[2], const float uv3[2], + const float co1[3], const float co2[3], const float co3[3], + const float n[3], + float r_tang[3]); /******************************** Vector Clouds ******************************/ |