2024-01-21 22:39:32 +00:00
|
|
|
--A type map for the luau analyzer
|
|
|
|
type f64 = number
|
|
|
|
|
2024-01-22 01:25:19 +00:00
|
|
|
type struct_Vector2 = {x: f64, y: f64}
|
|
|
|
type struct_Vector3 = struct_Vector2 & {z: f64}
|
|
|
|
type struct_Vector4 = struct_Vector3 & {w: f64}
|
2024-01-21 22:39:32 +00:00
|
|
|
|
2024-01-22 01:25:19 +00:00
|
|
|
type Vector2 = {
|
|
|
|
new: (x: f64, y: f64) -> struct_Vector2
|
|
|
|
}
|
|
|
|
type Vector3 = {
|
|
|
|
new: (x: f64, y: f64, z: f64) -> struct_Vector3
|
|
|
|
}
|
|
|
|
type Vector4 = {
|
|
|
|
new: (x: f64, y: f64, z: f64, w: f64) -> struct_Vector4
|
|
|
|
}
|
2024-01-21 22:39:32 +00:00
|
|
|
|
2024-01-22 01:25:19 +00:00
|
|
|
local Vector2: Vector2 = Vector2
|
|
|
|
local Vector3: Vector3 = Vector3
|
|
|
|
local Vector4: Vector4 = Vector4
|
2024-01-21 22:39:32 +00:00
|
|
|
|
|
|
|
return {
|
2024-01-22 01:25:19 +00:00
|
|
|
Vector2 = Vector2,
|
|
|
|
Vector3 = Vector3,
|
|
|
|
Vector4 = Vector4,
|
2024-01-21 22:39:32 +00:00
|
|
|
}
|