@rbxts/types 1.0.673 → 1.0.674

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.
@@ -2247,11 +2247,19 @@ declare function warn(...params: Array<unknown>): void;
2247
2247
 
2248
2248
  // math functions
2249
2249
  declare namespace math {
2250
- /** Returns a perlin noise value between -0.5 and 0.5. If you leave arguments out, they will be interpreted as zero, so math.noise(1.158) is equivalent to math.noise(1.158, 0, 0) and math.noise(1.158, 5.723) is equivalent to math.noise(1.158, 5.723, 0).
2251
- * The function uses a perlin noise algorithm to assign fixed values to coordinates. For example, math.noise(1.158, 5.723) will always return 0.48397532105446 and math.noise(1.158, 6) will always return 0.15315161645412.
2252
- * If x, y and z are all integers, the return value will be 0. For fractional values of x, y and z, the return value will gradually fluctuate between -0.5 and 0.5. For coordinates that are close to each other, the return values will also be close to each other. */
2253
- function noise(x?: number, y?: number, z?: number): number;
2254
-
2250
+ /**
2251
+ * Returns a perlin noise value. The returned value is most often between the range [-1, 1].
2252
+ *
2253
+ * The returned value is sometimes will be outside of the range [-1,1], so if the interval is critical to you,
2254
+ * you should use `math.clamp(noise, -1, 1)` on the output.
2255
+ *
2256
+ * The function uses a perlin noise algorithm to assign fixed values to coordinates.
2257
+ * For example, `math.noise(1.158, 5.723)` will always return `0.48397532105446` and `math.noise(1.158, 6)` will always return `0.15315161645412`.
2258
+ *
2259
+ * If x, y and z are all integers, the return value will be 0. For fractional values of x, y and z, the return value will gradually fluctuate between -0.5 and 0.5.
2260
+ * For coordinates that are close to each other, the return values will also be close to each other.
2261
+ */
2262
+ function noise(x: number, y?: number, z?: number): number;
2255
2263
  /** Returns a number between min and max, inclusive. */
2256
2264
  function clamp(n: number, min: number, max: number): number;
2257
2265
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rbxts/types",
3
- "version": "1.0.673",
3
+ "version": "1.0.674",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },