@rbxts/types 1.0.560 → 1.0.561

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.
@@ -1888,6 +1888,10 @@ interface Vector2 {
1888
1888
  Lerp(this: Vector2, goal: Vector2, alpha: number): Vector2;
1889
1889
  /** Returns the cross product of the two vectors */
1890
1890
  Cross(this: Vector2, other: Vector2): number;
1891
+ /** Returns a new Vector2 with the minimum of each component. */
1892
+ Min(this: Vector2, ...vectors: Array<Vector2>): Vector2;
1893
+ /** Returns a new Vector2 with the maximum of each component. */
1894
+ Max(this: Vector2, ...vectors: Array<Vector2>): Vector2;
1891
1895
  }
1892
1896
 
1893
1897
  interface Vector2Constructor {
@@ -1984,6 +1988,10 @@ interface Vector3 {
1984
1988
  Cross(this: Vector3, other: Vector3): Vector3;
1985
1989
  /** Returns true if the other Vector3 falls within the epsilon radius of this Vector3. */
1986
1990
  FuzzyEq(this: Vector3, other: Vector3, epsilon?: number): boolean;
1991
+ /** Returns a new Vector3 with the minimum of each component. */
1992
+ Min(this: Vector3, ...vectors: Array<Vector3>): Vector3;
1993
+ /** Returns a new Vector3 with the maximum of each component. */
1994
+ Max(this: Vector3, ...vectors: Array<Vector3>): Vector3;
1987
1995
  }
1988
1996
 
1989
1997
  interface Vector3Constructor {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rbxts/types",
3
- "version": "1.0.560",
3
+ "version": "1.0.561",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },