Remove dotprod

FossilOrigin-Name: da90479adfbf8157d7f203d06b68ddc6b9d5d2667e54e6ac8b6380d96ce05048
This commit is contained in:
Jonathan Schleifer 2025-03-23 17:41:32 +00:00
parent e91d88fd2b
commit 6320094293
2 changed files with 3 additions and 4 deletions

View file

@ -90,12 +90,12 @@ intersect(DynamicEntity *d, const OFVector3D *from, const OFVector3D *to)
const OFVector3D *p;
v = OFSubtractVectors3D(v, *from);
w = OFSubtractVectors3D(w, *from);
float c1 = dotprod(w, v);
float c1 = OFDotProductOfVectors3D(w, v);
if (c1 <= 0)
p = from;
else {
float c2 = dotprod(v, v);
float c2 = OFDotProductOfVectors3D(v, v);
if (c2 <= c1)
p = to;
else {