Start the rewrite

This commit is contained in:
2024-07-13 11:50:51 -04:00
parent f68767ed77
commit 7db34919ea
8 changed files with 261 additions and 140 deletions

View File

@@ -32,6 +32,11 @@ export type Easing = {
InOutQuart: Ease,
}
export type MathStatic = {
acosPI: number,
E: number
}
export type Math = {
Easing: Easing,
IsOdd: (n: number) -> boolean,
@@ -41,12 +46,15 @@ export type Math = {
LinearElapse: (StartTime: number, Timing: number) -> number,
maxmin: (min: number, n: number, max: number) -> number,
minmax: (min: number, n: number, max: number) -> number
}
} & MathStatic
local Math = {
Easing = {}
} :: Math
Math.acosPI = math.acos(-1)
Math.E = 2.71828182845905
function Math.IsOdd(n)
return bit32.btest(bit32.band(n, 1))
end
@@ -58,7 +66,6 @@ end
function Math.maxmin(min, n, max)
return math.max(min, math.min(n, max))
end
Math.minmax = Math.maxmin
function Math.RotationMatrix(X, Y, Z)