Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Lucke <jacques@blender.org>2020-07-23 23:30:05 +0300
committerJacques Lucke <jacques@blender.org>2020-07-23 23:30:22 +0300
commitf359672c3589c5c474abe1de78fcf39dd59e3532 (patch)
treebafb3806a8eab57f2def3b28c64e71450d9bec9b /source/blender/blenlib/BLI_float4x4.hh
parentc049fe7979de5a3a904a6528878df95ade8e358a (diff)
Particles: spawn particles on mesh surface
Diffstat (limited to 'source/blender/blenlib/BLI_float4x4.hh')
-rw-r--r--source/blender/blenlib/BLI_float4x4.hh11
1 files changed, 9 insertions, 2 deletions
diff --git a/source/blender/blenlib/BLI_float4x4.hh b/source/blender/blenlib/BLI_float4x4.hh
index 185cffd13ac..5698d06f05d 100644
--- a/source/blender/blenlib/BLI_float4x4.hh
+++ b/source/blender/blenlib/BLI_float4x4.hh
@@ -71,8 +71,8 @@ struct float4x4 {
float4x4 inverted() const
{
- float result[4][4];
- invert_m4_m4(result, values);
+ float4x4 result;
+ invert_m4_m4(result.values, values);
return result;
}
@@ -86,6 +86,13 @@ struct float4x4 {
return this->inverted();
}
+ float4x4 transposed() const
+ {
+ float4x4 result;
+ transpose_m4_m4(result.values, values);
+ return result;
+ }
+
struct float3x3_ref {
const float4x4 &data;