diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2015-06-29 18:10:42 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2015-06-29 18:10:42 +0300 |
commit | 58d6cbba6da31db8dc8a2b42d528b9a353081904 (patch) | |
tree | 04b57a2f809c6f08d84a082edf061f3ece631860 /source/blender/blenlib/BLI_quadric.h | |
parent | 94549adec4b6857fb6ec4cf77606da51ff7c26b7 (diff) | |
parent | 295d0c52a26730edc6d4ed1276e4051cce006be5 (diff) |
Merge branch 'master' into temp-ghash-setopstemp-ghash-setops
Diffstat (limited to 'source/blender/blenlib/BLI_quadric.h')
-rw-r--r-- | source/blender/blenlib/BLI_quadric.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/source/blender/blenlib/BLI_quadric.h b/source/blender/blenlib/BLI_quadric.h index 82c39463dd2..eaf9c7a0738 100644 --- a/source/blender/blenlib/BLI_quadric.h +++ b/source/blender/blenlib/BLI_quadric.h @@ -31,14 +31,14 @@ */ typedef struct Quadric { - float a2, ab, ac, ad, - b2, bc, bd, - c2, cd, - d2; + double a2, ab, ac, ad, + b2, bc, bd, + c2, cd, + d2; } Quadric; /* conversion */ -void BLI_quadric_from_v3_dist(Quadric *q, const float v[3], const float offset); +void BLI_quadric_from_plane(Quadric *q, const double v[4]); void BLI_quadric_to_tensor_m3(const Quadric *q, float m[3][3]); void BLI_quadric_to_vector_v3(const Quadric *q, float v[3]); @@ -47,10 +47,10 @@ void BLI_quadric_clear(Quadric *q); /* math */ void BLI_quadric_add_qu_qu(Quadric *a, const Quadric *b); void BLI_quadric_add_qu_ququ(Quadric *r, const Quadric *a, const Quadric *b); -void BLI_quadric_mul(Quadric *a, const float scalar); +void BLI_quadric_mul(Quadric *a, const double scalar); /* solve */ -float BLI_quadric_evaluate(const Quadric *q, const float v[3]); +double BLI_quadric_evaluate(const Quadric *q, const float v_fl[3]); bool BLI_quadric_optimize(const Quadric *q, float v[3], const float epsilon); #endif /* __BLI_QUADRIC_H__ */ |