@quenty/metricutils 2.3.0 → 2.4.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
+ # [2.4.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/metricutils@2.3.0...@quenty/metricutils@2.4.0) (2024-11-12)
7
+
8
+
9
+ ### Features
10
+
11
+ * Add MetricUtils.studsPerSecondToMetersPerSecond(studsPerSecond) ([7e2165f](https://github.com/Quenty/NevermoreEngine/commit/7e2165fa6c028d8cea2f0c59d65f330b23ab1e2c))
12
+
13
+
14
+
15
+
16
+
6
17
  # [2.3.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/metricutils@2.2.0...@quenty/metricutils@2.3.0) (2024-05-09)
7
18
 
8
19
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/metricutils",
3
- "version": "2.3.0",
3
+ "version": "2.4.0",
4
4
  "description": "Provides ways to convert to or from metric",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -27,5 +27,5 @@
27
27
  "publishConfig": {
28
28
  "access": "public"
29
29
  },
30
- "gitHead": "3fd5cdca3128bf34c8d9dfae1e92d62533b6e6f5"
30
+ "gitHead": "9c3afd151641bac32d4bcc66e1e5eb218d095b41"
31
31
  }
@@ -47,6 +47,16 @@ function MetricUtils.studsPerSecondToKph(studsPerSecond)
47
47
  return studsPerSecond/STUDS_PER_METER/1000*SECONDS_PER_HOUR
48
48
  end
49
49
 
50
+ --[=[
51
+ Convert from studs per a second to meters per a second
52
+
53
+ @param studsPerSecond number
54
+ @return number -- kph
55
+ ]=]
56
+ function MetricUtils.studsPerSecondToMetersPerSecond(studsPerSecond)
57
+ return studsPerSecond/STUDS_PER_METER
58
+ end
59
+
50
60
  --[=[
51
61
  Convert from studs per a second (Roblox in-game units) to mph
52
62
  @param studsPerSecond number