diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-07-13 13:19:05 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-07-13 13:19:05 +0400 |
commit | 73c2abe83d4e9636c4d00dc714dcba88374d9e34 (patch) | |
tree | a91fdd6052a966be35974017a6f28ad4e84a8b01 /source/blender/blenlib/BLI_math_geom.h | |
parent | 6ee2e0b145bdd4e936f58a05ac24d90533824e77 (diff) |
new function barycentric_weights_v2_quad(), like barycentric_weights_v2 but for quads.
takes vecs and a point and assigns 4 weights, needed for nice quad interpolation for mask feathering.
Diffstat (limited to 'source/blender/blenlib/BLI_math_geom.h')
-rw-r--r-- | source/blender/blenlib/BLI_math_geom.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_math_geom.h b/source/blender/blenlib/BLI_math_geom.h index 8ccc3159f78..50345237a9f 100644 --- a/source/blender/blenlib/BLI_math_geom.h +++ b/source/blender/blenlib/BLI_math_geom.h @@ -200,6 +200,8 @@ void barycentric_transform(float pt_tar[3], float const pt_src[3], void barycentric_weights_v2(const float v1[2], const float v2[2], const float v3[2], const float co[2], float w[3]); +void barycentric_weights_v2_quad(const float v1[2], const float v2[2], const float v3[2], const float v4[2], + const float co[2], float w[4]); int barycentric_coords_v2(const float v1[2], const float v2[2], const float v3[2], const float co[2], float w[3]); int barycentric_inside_triangle_v2(const float w[3]); |