mirror of
https://github.com/unixtensor/Roblox-Elevator-Game.git
synced 2025-12-14 14:51:55 +00:00
Start the rewrite
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user