X-Git-Url: https://harrygodden.com/git/?p=csRadar.git;a=blobdiff_plain;f=csrMath.h;fp=csrMath.h;h=36ad62fe4583bb848e5d7ef90929594982ed3d23;hp=1555361cab68be25f694c6e73dfd27bf8f9a33a3;hb=dee56773cecd3a165331732008b7c0acf6f13393;hpb=abfc6360542cb480122313a36f6ed02c08074ed5 diff --git a/csrMath.h b/csrMath.h index 1555361..36ad62f 100644 --- 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]; } +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 // ==================================================================================================================