From 8f0907b79701f3fa13b66528cfaeb901bf84e930 Mon Sep 17 00:00:00 2001 From: Jacques Lucke Date: Tue, 5 Jul 2022 15:38:30 +0200 Subject: [PATCH] BLI: add float3x3 * float3 operator overload --- source/blender/blenlib/BLI_float3x3.hh | 7 +++++++ 1 file changed, 7 insertions(+) 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);