Remove dotprod
FossilOrigin-Name: da90479adfbf8157d7f203d06b68ddc6b9d5d2667e54e6ac8b6380d96ce05048
This commit is contained in:
parent
e91d88fd2b
commit
6320094293
2 changed files with 3 additions and 4 deletions
|
@ -287,10 +287,9 @@ extern bool demoplayback;
|
|||
#define PI2 (2 * PI)
|
||||
|
||||
// simplistic vector ops
|
||||
#define dotprod(u, v) ((u).x * (v).x + (u).y * (v).y + (u).z * (v).z)
|
||||
#define vdist(d, v, e, s) \
|
||||
OFVector3D v = OFSubtractVectors3D(s, e); \
|
||||
float d = (float)sqrt(dotprod(v, v));
|
||||
float d = sqrtf(OFDotProductOfVectors3D(v, v));
|
||||
#define vreject(v, u, max) \
|
||||
((v).x > (u).x + (max) || (v).x < (u).x - (max) || \
|
||||
(v).y > (u).y + (max) || (v).y < (u).y - (max))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue