Comment sizes and color fixed

This commit is contained in:
barsdeveloper
2022-12-10 12:42:09 +01:00
parent 97d4b18347
commit f1fc015453
12 changed files with 116 additions and 37 deletions

View File

@@ -68,6 +68,14 @@ export default class Utility {
return Math.round(num * power) / power
}
/**
* @param {Number} a
* @param {Number} b
*/
static approximatelyEqual(a, b) {
return !(Math.abs(a - b) > Number.EPSILON)
}
/**
* @param {Number[]} viewportLocation
* @param {HTMLElement} movementElement