Commit: 653da436277409d59b85f8a754cad153f9403719
Author: ishbosamiya
Date: Sun Sep 5 10:55:22 2021 +0530
Branches: soc-2021-adaptive-cloth
https://developer.blender.org/rB653da436277409d59b85f8a754cad153f9403719
float2x2: constructor through direct values of the matrix
===================================================================
M source/blender/blenlib/BLI_float2x2.hh
===================================================================
diff --git a/source/blender/blenlib/BLI_float2x2.hh
b/source/blender/blenlib/BLI_float2x2.hh
index 81628fee84e..9bf27d50d49 100644
--- a/source/blender/blenlib/BLI_float2x2.hh
+++ b/source/blender/blenlib/BLI_float2x2.hh
@@ -60,6 +60,17 @@ struct float2x2 {
this->ptr()[1][1] = col2[1];
}
+ /**
+ * Constructor through direct values of matrix
+ */
+ float2x2(float m00, float m01, float m10, float m11)
+ {
+ this->ptr()[0][0] = m00;
+ this->ptr()[0][1] = m01;
+ this->ptr()[1][0] = m10;
+ this->ptr()[1][1] = m11;
+ }
+
static float2x2 identity()
{
float2x2 mat;
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs