projects
/
dosdemo
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
updated cgmath
[dosdemo]
/
libs
/
cgmath
/
cgmvec4.inl
diff --git
a/libs/cgmath/cgmvec4.inl
b/libs/cgmath/cgmvec4.inl
index
1c143c2
..
b68856c
100644
(file)
--- a/
libs/cgmath/cgmvec4.inl
+++ b/
libs/cgmath/cgmvec4.inl
@@
-104,6
+104,11
@@
static inline void cgm_wmul_v4m3(cgm_vec4 *v, const float *m)
v->y = y;
}
v->y = y;
}
+static inline float cgm_wdot(const cgm_vec4 *a, const cgm_vec4 *b)
+{
+ return a->x * b->x + a->y * b->y + a->z * b->z + a->w * b->w;
+}
+
static inline float cgm_wlength(const cgm_vec4 *v)
{
return sqrt(v->x * v->x + v->y * v->y + v->z * v->z + v->w * v->w);
static inline float cgm_wlength(const cgm_vec4 *v)
{
return sqrt(v->x * v->x + v->y * v->y + v->z * v->z + v->w * v->w);