@rbxts/types 1.0.816 → 1.0.818
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/roblox.d.ts +62 -2
- package/package.json +1 -1
package/include/roblox.d.ts
CHANGED
|
@@ -2921,6 +2921,68 @@ declare namespace buffer {
|
|
|
2921
2921
|
function fill(b: buffer, offset: number, value: number, count?: number): void;
|
|
2922
2922
|
}
|
|
2923
2923
|
|
|
2924
|
+
interface vector {
|
|
2925
|
+
/**
|
|
2926
|
+
* **DO NOT USE!**
|
|
2927
|
+
*
|
|
2928
|
+
* This field exists to force TypeScript to recognize this as a nominal type
|
|
2929
|
+
* @hidden
|
|
2930
|
+
* @deprecated
|
|
2931
|
+
*/
|
|
2932
|
+
readonly _nominal_vector: unique symbol;
|
|
2933
|
+
|
|
2934
|
+
readonly x: number;
|
|
2935
|
+
readonly y: number;
|
|
2936
|
+
readonly z: number;
|
|
2937
|
+
}
|
|
2938
|
+
|
|
2939
|
+
declare namespace vector {
|
|
2940
|
+
/** Constant vector with all components set to zero. */
|
|
2941
|
+
const zero: vector;
|
|
2942
|
+
|
|
2943
|
+
/** Constant vector with all components set to one. */
|
|
2944
|
+
const one: vector;
|
|
2945
|
+
|
|
2946
|
+
/** Creates a new vector with the given component values. */
|
|
2947
|
+
function create(x: number, y: number, z: number): vector;
|
|
2948
|
+
|
|
2949
|
+
/** Calculates the magnitude of a given vector. */
|
|
2950
|
+
function magnitude(vec: vector): number;
|
|
2951
|
+
|
|
2952
|
+
/** Computes the normalized version (unit vector) of a given vector. */
|
|
2953
|
+
function normalize(vec: vector): vector;
|
|
2954
|
+
|
|
2955
|
+
/** Computes the cross product of two vectors. */
|
|
2956
|
+
function cross(vec1: vector, vec2: vector): vector;
|
|
2957
|
+
|
|
2958
|
+
/** Computes the dot product of two vectors. */
|
|
2959
|
+
function dot(vec1: vector, vec2: vector): number;
|
|
2960
|
+
|
|
2961
|
+
/** Computes the angle between two vectors in radians. The axis, if specified, is used to determine the sign of the angle. */
|
|
2962
|
+
function angle(vec1: vector, vec2: vector, axis?: vector): number;
|
|
2963
|
+
|
|
2964
|
+
/** Applies `math.floor` to every component of the input vector. */
|
|
2965
|
+
function floor(vec: vector): vector;
|
|
2966
|
+
|
|
2967
|
+
/** Applies `math.ceil` to every component of the input vector. */
|
|
2968
|
+
function ceil(vec: vector): vector;
|
|
2969
|
+
|
|
2970
|
+
/** Applies `math.abs` to every component of the input vector. */
|
|
2971
|
+
function abs(vec: vector): vector;
|
|
2972
|
+
|
|
2973
|
+
/** Applies `math.sign` to every component of the input vector. */
|
|
2974
|
+
function sign(vec: vector): vector;
|
|
2975
|
+
|
|
2976
|
+
/** Applies `math.clamp` to every component of the input vector. */
|
|
2977
|
+
function clamp(vec: vector, min: vector, max: vector): vector;
|
|
2978
|
+
|
|
2979
|
+
/** Applies `math.max` to the corresponding components of the input vectors. Equivalent to `vector.create(math.max((...).x), math.max((...).y), math.max((...).z))`. */
|
|
2980
|
+
function max(...vecs: Array<vector>): vector;
|
|
2981
|
+
|
|
2982
|
+
/** Applies `math.min` to the corresponding components of the input vectors. Equivalent to `vector.create(math.min((...).x), math.min((...).y), math.min((...).z))`. */
|
|
2983
|
+
function min(...vecs: Array<vector>): vector;
|
|
2984
|
+
}
|
|
2985
|
+
|
|
2924
2986
|
interface GettableCores {
|
|
2925
2987
|
AvatarContextMenuEnabled: boolean;
|
|
2926
2988
|
PointsNotificationsActive: boolean;
|
|
@@ -3230,5 +3292,3 @@ interface UserSubscriptionStatus {
|
|
|
3230
3292
|
interface ExpirationDetails {
|
|
3231
3293
|
ExpirationReason: Enum.SubscriptionExpirationReason;
|
|
3232
3294
|
}
|
|
3233
|
-
|
|
3234
|
-
// 7F8EA37-8BD5-4084-99CC-86CE4D418DB6
|