diff options
author | Sebastian Parborg <darkdefende@gmail.com> | 2021-01-26 20:23:13 +0300 |
---|---|---|
committer | Sebastian Parborg <darkdefende@gmail.com> | 2021-01-26 20:23:13 +0300 |
commit | 82523840cd40359a6c60bcc60983762eca87d17b (patch) | |
tree | fada3f96343c6b326bc71f0e53bfde2529764b6a /source/blender/blenlib | |
parent | ae5c15bb4349426c5db276d7d73d750c43cc0346 (diff) | |
parent | abd6b1d7b281c85fce748e0535f1f769916cd9b3 (diff) |
Merge branch 'blender-v2.92-release'
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r-- | source/blender/blenlib/BLI_float4x4.hh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_float4x4.hh b/source/blender/blenlib/BLI_float4x4.hh index 0433197b22a..d6d759ccfe4 100644 --- a/source/blender/blenlib/BLI_float4x4.hh +++ b/source/blender/blenlib/BLI_float4x4.hh @@ -45,6 +45,17 @@ struct float4x4 { return &values[0][0]; } + using c_style_float4x4 = float[4][4]; + c_style_float4x4 &ptr() + { + return values; + } + + const c_style_float4x4 &ptr() const + { + return values; + } + friend float4x4 operator*(const float4x4 &a, const float4x4 &b) { float4x4 result; |