@urso/core 0.7.56 → 0.7.57

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.56",
3
+ "version": "0.7.57",
4
4
  "description": "HTML5 game engine",
5
5
  "main": "build/js/index.js",
6
6
  "author": "Megbrimef",
@@ -522,6 +522,7 @@ class LibHelper {
522
522
 
523
523
  if (a !== 0 && b !== 0) {
524
524
  const cornerRcos = (a * a + b * b - c * c) / (2 * a * b);
525
+ Urso.math.intMakeBetween(cornerRcos, -1, 1);
525
526
  angle = Math.acos(cornerRcos);
526
527
  }
527
528
 
@@ -606,7 +607,7 @@ class LibHelper {
606
607
  * @returns { Object }
607
608
  */
608
609
  getRGB(color) {
609
- return {
610
+ return {
610
611
  alpha: 16777215 < color ? color >>> 24 : 255,
611
612
  red: color >> 16 & 255,
612
613
  green: color >> 8 & 255,
@@ -634,7 +635,7 @@ class LibHelper {
634
635
  * @returns { Number }
635
636
  */
636
637
  interpolateColor32(startColor, targetColor, step) {
637
- if(startColor === targetColor)
638
+ if (startColor === targetColor)
638
639
  return startColor;
639
640
 
640
641
  const startColorRGB = this.getRGB(startColor);