new function

This commit is contained in:
Laetitia (O-01-67) 2023-02-20 15:04:48 -05:00 committed by GitHub
parent 2749bd2595
commit 196c3d8f8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -225,6 +225,11 @@
//Math(s)
//Base n logarithm from https://stackoverflow.com/a/3019290
function logN(number,base) { //Vulnerable to float issues
return Math.log(number) / Math.log(base);
};
//Distance between points
function pyth(xA,yA,xB,yB) {
var a = Math.abs(xB - xA);