[Bf-blender-cvs] [4b8dc739960] soc-2021-adaptive-cloth: float2x2: transpose
ishbosamiya
noreply at git.blender.org
Mon Sep 6 11:47:40 CEST 2021
Commit: 4b8dc739960633fbeae8b0bd881c80c4dcd36e76
Author: ishbosamiya
Date: Sun Sep 5 10:55:47 2021 +0530
Branches: soc-2021-adaptive-cloth
https://developer.blender.org/rB4b8dc739960633fbeae8b0bd881c80c4dcd36e76
float2x2: transpose
===================================================================
M source/blender/blenlib/BLI_float2x2.hh
===================================================================
diff --git a/source/blender/blenlib/BLI_float2x2.hh b/source/blender/blenlib/BLI_float2x2.hh
index dd7ebe06826..c7b007a285d 100644
--- a/source/blender/blenlib/BLI_float2x2.hh
+++ b/source/blender/blenlib/BLI_float2x2.hh
@@ -228,6 +228,11 @@ struct float2x2 {
return float2x2(d, -c, -b, a) * (1.0 / det);
}
+ float2x2 transpose() const
+ {
+ return float2x2(this->ptr()[0][0], this->ptr()[1][0], this->ptr()[0][1], this->ptr()[1][1]);
+ }
+
uint64_t hash() const
{
uint64_t h = 435109;
More information about the Bf-blender-cvs
mailing list