Commit: 8f0907b79701f3fa13b66528cfaeb901bf84e930
Author: Jacques Lucke
Date: Tue Jul 5 15:38:30 2022 +0200
Branches: master
https://developer.blender.org/rB8f0907b79701f3fa13b66528cfaeb901bf84e930
BLI: add float3x3 * float3 operator overload
===================================================================
M source/blender/blenlib/BLI_float3x3.hh
===================================================================
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);
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs