projects
/
vg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c70327d
)
diagonal
author
hgn
<hgodden00@gmail.com>
Sat, 29 Apr 2023 16:26:41 +0000
(17:26 +0100)
committer
hgn
<hgodden00@gmail.com>
Sat, 29 Apr 2023 16:26:41 +0000
(17:26 +0100)
vg_m.h
patch
|
blob
|
history
diff --git
a/vg_m.h
b/vg_m.h
index 8e6e56c0c425d00f3b07c789c4d3bbcc6dd601fa..a8b2091fe3ae51b5a6124820e1994189368e042b 100644
(file)
--- a/
vg_m.h
+++ b/
vg_m.h
@@
-606,6
+606,13
@@
static void m3x3_diagonal( m3x3f a, float v )
a[2][2] = v;
}
+static void m3x3_setdiagonalv3( m3x3f a, v3f v )
+{
+ a[0][0] = v[0];
+ a[1][1] = v[1];
+ a[2][2] = v[2];
+}
+
static inline void m3x3_zero( m3x3f a )
{
m3x3f z = M3X3_ZERO;