@quenty/region3int16utils 10.8.1 → 10.8.2
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 +11 -0
- package/package.json +3 -3
- package/src/Shared/Region3int16Utils.lua +4 -3
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
|
+
## [10.8.2](https://github.com/Quenty/NevermoreEngine/compare/@quenty/region3int16utils@10.8.1...@quenty/region3int16utils@10.8.2) (2025-04-05)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* Add types to packages ([2374fb2](https://github.com/Quenty/NevermoreEngine/commit/2374fb2b043cfbe0e9b507b3316eec46a4e353a0))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [10.8.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/region3int16utils@10.8.0...@quenty/region3int16utils@10.8.1) (2025-03-21)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @quenty/region3int16utils
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/region3int16utils",
|
|
3
|
-
"version": "10.8.
|
|
3
|
+
"version": "10.8.2",
|
|
4
4
|
"description": "Module for working with Region3int16",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -25,11 +25,11 @@
|
|
|
25
25
|
"Quenty"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@quenty/loader": "^10.8.
|
|
28
|
+
"@quenty/loader": "^10.8.1",
|
|
29
29
|
"@quenty/vector3int16utils": "^2.2.1"
|
|
30
30
|
},
|
|
31
31
|
"publishConfig": {
|
|
32
32
|
"access": "public"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "78c3ac0ab08dd18085b6e6e6e4f745e76ed99f68"
|
|
35
35
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
--!strict
|
|
1
2
|
--[=[
|
|
2
3
|
Module for working with Region3int16
|
|
3
4
|
@class Region3int16Utils
|
|
@@ -9,14 +10,14 @@ local Vector3int16Utils = require("Vector3int16Utils")
|
|
|
9
10
|
|
|
10
11
|
local Region3int16Utils = {}
|
|
11
12
|
|
|
12
|
-
function Region3int16Utils.createRegion3int16FromPositionSize(position, size)
|
|
13
|
-
local halfSize = size/2
|
|
13
|
+
function Region3int16Utils.createRegion3int16FromPositionSize(position: Vector3, size: Vector3): Region3int16
|
|
14
|
+
local halfSize = size / 2
|
|
14
15
|
local min = Vector3int16Utils.fromVector3(position - halfSize)
|
|
15
16
|
local max = Vector3int16Utils.fromVector3(position + halfSize)
|
|
16
17
|
return Region3int16.new(min, max)
|
|
17
18
|
end
|
|
18
19
|
|
|
19
|
-
function Region3int16Utils.fromRegion3(region3)
|
|
20
|
+
function Region3int16Utils.fromRegion3(region3: Region3): Region3int16
|
|
20
21
|
return Region3int16Utils.createRegion3int16FromPositionSize(region3.CFrame.Position, region3.Size)
|
|
21
22
|
end
|
|
22
23
|
|