diff options
author | Jacques Lucke <jacques@blender.org> | 2022-07-05 16:38:30 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2022-07-05 16:38:30 +0300 |
commit | 8f0907b79701f3fa13b66528cfaeb901bf84e930 (patch) | |
tree | 94a17dd6c1515b7a20ed33e706d45ff8f9c743c8 /source/blender/blenlib | |
parent | d4099465cddc2d3ec3653220f6b775ba3ffb3ea0 (diff) |
BLI: add float3x3 * float3 operator overload
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r-- | source/blender/blenlib/BLI_float3x3.hh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_float3x3.hh b/source/blender/blenlib/BLI_float3x3.hh index 62478556d9b..6a9e7dd04f0 100644 --- a/source/blender/blenlib/BLI_float3x3.hh +++ b/source/blender/blenlib/BLI_float3x3.hh @@ -152,6 +152,13 @@ struct float3x3 { return result; } + friend float3 operator*(const float3x3 &a, const float3 &b) + { + float3 result; + mul_v3_m3v3(result, a.values, b); + return result; + } + void operator*=(const float3x3 &other) { mul_m3_m3_post(values, other.values); |