f32 instead because glam

This commit is contained in:
unittensor 2024-01-22 23:28:48 -05:00
parent 40745c4f6f
commit 33cf9f0561

View File

@ -1,14 +1,14 @@
--A type map for the luau analyzer
type f64 = number
type f32 = number
type struct_Vector2 = {x: f64, y: f64}
type struct_Vector3 = struct_Vector2 & {z: f64}
type struct_Vector4 = struct_Vector3 & {w: f64}
type struct_Vector2 = {x: f32, y: f32}
type struct_Vector3 = struct_Vector2 & {z: f32}
type struct_Vector4 = struct_Vector3 & {w: f32}
export type warn = (message: string) -> ()
export type Vector2 = {
new: (x: f64?, y: f64?) -> struct_Vector2,
new: (x: f32?, y: f32?) -> struct_Vector2,
ONE: struct_Vector2,
ZERO: struct_Vector2,
NEG_ZERO: struct_Vector2,
@ -17,7 +17,7 @@ export type Vector2 = {
NEG_Y: struct_Vector2,
}
export type Vector3 = {
new: (x: f64?, y: f64?, z: f64?) -> struct_Vector3,
new: (x: f32?, y: f32?, z: f32?) -> struct_Vector3,
ONE: struct_Vector3,
ZERO: struct_Vector3,
NEG_ZERO: struct_Vector3,
@ -26,7 +26,7 @@ export type Vector3 = {
NEG_Y: struct_Vector3,
}
export type Vector4 = {
new: (x: f64?, y: f64?, z: f64?, w: f64?) -> struct_Vector4,
new: (x: f32?, y: f32?, z: f32?, w: f32?) -> struct_Vector4,
ONE: struct_Vector4,
ZERO: struct_Vector4,
NEG_ZERO: struct_Vector4,