@quenty/convexhull 4.7.1 → 4.8.0

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/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [4.8.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/convexhull@4.7.1...@quenty/convexhull@4.8.0) (2024-12-03)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * Use modern Roblox APIs ([b4b9047](https://github.com/Quenty/NevermoreEngine/commit/b4b90471fbb678c6fb84664dbfc32cb9bfc56c2c))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [4.7.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/convexhull@4.7.0...@quenty/convexhull@4.7.1) (2024-11-04)
7
18
 
8
19
  **Note:** Version bump only for package @quenty/convexhull
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/convexhull",
3
- "version": "4.7.1",
3
+ "version": "4.8.0",
4
4
  "description": "Convex hull computation algorithms",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -34,5 +34,5 @@
34
34
  "publishConfig": {
35
35
  "access": "public"
36
36
  },
37
- "gitHead": "01c43a0ddd3c5e0cb2d9027313dbfa9852eedef1"
37
+ "gitHead": "66190e48c1ca93b07040326e9cfcf97e8eb4b0e1"
38
38
  }
@@ -47,8 +47,8 @@ end
47
47
  Computes line intersection between vectors
48
48
  ]=]
49
49
  function ConvexHull2DUtils.lineIntersect(a: Vector2, b: Vector2, c: Vector2, d: Vector2): Vector2 | nil
50
- local r = (b - a)
51
- local s = (d - c)
50
+ local r = b - a
51
+ local s = d - c
52
52
  local dot = r.x * s.y - r.y * s.x
53
53
  local u = ((c.x - a.x) * r.y - (c.y - a.y) * r.x) / dot
54
54
  local t = ((c.x - a.x) * s.y - (c.y - a.y) * s.x) / dot
@@ -88,6 +88,7 @@ function ConvexHull2DUtils.raycast(from: Vector2, to: Vector2, hull: { Vector2 }
88
88
  if not closest then
89
89
  return nil, nil, nil
90
90
  end
91
+
91
92
  return closest.point, closest.startPoint, closest.finishPoint
92
93
  end
93
94