@urso/core 0.7.57 → 0.7.58

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@urso/core",
3
- "version": "0.7.57",
3
+ "version": "0.7.58",
4
4
  "description": "HTML5 game engine",
5
5
  "main": "build/js/index.js",
6
6
  "author": "Megbrimef",
@@ -521,8 +521,11 @@ class LibHelper {
521
521
  const b = this.getLengthBy2Points(point2, point3);
522
522
 
523
523
  if (a !== 0 && b !== 0) {
524
- const cornerRcos = (a * a + b * b - c * c) / (2 * a * b);
525
- Urso.math.intMakeBetween(cornerRcos, -1, 1);
524
+ const cornerRcos = Urso.math.intMakeBetween(
525
+ (a * a + b * b - c * c) / (2 * a * b),
526
+ -1, 1
527
+ );
528
+
526
529
  angle = Math.acos(cornerRcos);
527
530
  }
528
531