projects
/
csRadar.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tga & normals
[csRadar.git]
/
csrMath.h
diff --git
a/csrMath.h
b/csrMath.h
index 1555361cab68be25f694c6e73dfd27bf8f9a33a3..36ad62fe4583bb848e5d7ef90929594982ed3d23 100644
(file)
--- a/
csrMath.h
+++ b/
csrMath.h
@@
-86,6
+86,11
@@
CSR_INLINE void v2_mul( v2f a, v2f b, v2f d )
d[0] = a[0]*b[0]; d[1] = a[1]*b[1];
}
d[0] = a[0]*b[0]; d[1] = a[1]*b[1];
}
+CSR_INLINE void v2_div( v2f a, v2f b, v2f d )
+{
+ d[0] = a[0]/b[0]; d[1] = a[1]/b[1];
+}
+
// Vector 3
// ==================================================================================================================
// Vector 3
// ==================================================================================================================