new function
This commit is contained in:
parent
2749bd2595
commit
196c3d8f8e
|
|
@ -225,6 +225,11 @@
|
||||||
|
|
||||||
//Math(s)
|
//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
|
//Distance between points
|
||||||
function pyth(xA,yA,xB,yB) {
|
function pyth(xA,yA,xB,yB) {
|
||||||
var a = Math.abs(xB - xA);
|
var a = Math.abs(xB - xA);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue