@rbxts/types 1.0.755 → 1.0.757
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/include/generated/None.d.ts +1 -1
- package/include/roblox.d.ts +18 -0
- package/package.json +1 -1
|
@@ -2775,7 +2775,7 @@ interface AudioAnalyzer extends Instance {
|
|
|
2775
2775
|
/**
|
|
2776
2776
|
* Tags: CustomLuaState
|
|
2777
2777
|
*/
|
|
2778
|
-
GetSpectrum(this: AudioAnalyzer):
|
|
2778
|
+
GetSpectrum(this: AudioAnalyzer): Array<number>;
|
|
2779
2779
|
}
|
|
2780
2780
|
|
|
2781
2781
|
interface AudioChorus extends Instance {
|
package/include/roblox.d.ts
CHANGED
|
@@ -2381,6 +2381,16 @@ interface Vector2 {
|
|
|
2381
2381
|
readonly Unit: Vector2;
|
|
2382
2382
|
/** The length of the vector */
|
|
2383
2383
|
readonly Magnitude: number;
|
|
2384
|
+
/** Returns a new vector from the absolute values of the original's components. For example, a vector of `(-2, 4)` returns a vector of `(2, 4)`. */
|
|
2385
|
+
Abs(this: Vector2): Vector2;
|
|
2386
|
+
/** Returns a new vector from the ceiling of the original's components. For example, a vector of `(-2.6, 5.1)` returns a vector of `(-2, 6)`. */
|
|
2387
|
+
Ceil(this: Vector2): Vector2;
|
|
2388
|
+
/** Returns a new vector from the floor of the original's components. For example, a vector of `(-2.6, 5.1)` returns a vector of `(-3, 5)`. */
|
|
2389
|
+
Floor(this: Vector2): Vector2;
|
|
2390
|
+
/** Returns a new vector from the sign (-1, 0, or 1) of the original's components. For example, a vector of `(-2.6, 5.1)` returns a vector of `(-1, 1)`. */
|
|
2391
|
+
Sign(this: Vector2): Vector2;
|
|
2392
|
+
/** Returns the angle in radians between the two vectors. Specify `true` for the optional `isSigned` boolean if you want a signed angle. By default, the method returns the absolute value. */
|
|
2393
|
+
Angle(this: Vector2, other: Vector2, isSigned?: boolean): number;
|
|
2384
2394
|
/** Returns a scalar dot product of the two vectors */
|
|
2385
2395
|
Dot(this: Vector2, other: Vector2): number;
|
|
2386
2396
|
/** Returns a Vector2 linearly interpolated between this Vector2 and the goal by the fraction alpha */
|
|
@@ -2479,6 +2489,14 @@ interface Vector3 {
|
|
|
2479
2489
|
readonly Unit: Vector3;
|
|
2480
2490
|
/** The length of the vector */
|
|
2481
2491
|
readonly Magnitude: number;
|
|
2492
|
+
/** Returns a new vector from the absolute values of the original's components. For example, a vector of `(-2, 4, -6)` returns a vector of `(2, 4, 6)`. */
|
|
2493
|
+
Abs(this: Vector3): Vector3;
|
|
2494
|
+
/** Returns a new vector from the ceiling of the original's components. For example, a vector of `(-2.6, 5.1, 8.8)` returns a vector of `(-2, 6, 9)`. */
|
|
2495
|
+
Ceil(this: Vector3): Vector3;
|
|
2496
|
+
/** Returns a new vector from the floor of the original's components. For example, a vector of `(-2.6, 5.1, 8.8)` returns a vector of `(-3, 5, 8)`. */
|
|
2497
|
+
Floor(this: Vector3): Vector3;
|
|
2498
|
+
/** Returns a new vector from the sign (-1, 0, or 1) of the original's components. For example, a vector of `(-2.6, 5.1, 0)` returns a vector of `(-1, 1, 0)`. */
|
|
2499
|
+
Sign(this: Vector3): Vector3;
|
|
2482
2500
|
/** Returns a Vector3 linearly interpolated between this Vector3 and the goal by the fraction alpha. */
|
|
2483
2501
|
Lerp(this: Vector3, goal: Vector3, alpha: number): Vector3;
|
|
2484
2502
|
/** Returns a scalar dot product of the two vectors. */
|