fixed pdiff
This commit is contained in:
parent
6605c303c8
commit
d3d6d5c7d9
@ -39,7 +39,7 @@ function calcPDiff(pScore, sF, sU)
|
|||||||
{
|
{
|
||||||
const fDiff = pScore.sF - sF;
|
const fDiff = pScore.sF - sF;
|
||||||
const uDiff = pScore.sU - sU;
|
const uDiff = pScore.sU - sU;
|
||||||
return Math.sqrt(fDiff^2 + uDiff^2);
|
return Math.sqrt(Math.pow(fDiff,2) + Math.pow(uDiff,2));
|
||||||
}else{
|
}else{
|
||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user