diff --git a/generated/lua_keywords_pretty.xml b/generated/lua_keywords_pretty.xml index 7c51831f..58dcfbec 100644 --- a/generated/lua_keywords_pretty.xml +++ b/generated/lua_keywords_pretty.xml @@ -329,24 +329,69 @@ export type rotation = quaternion type PrimParamsSetterTypeMeta + math.e + + tooltip + The base of the natural logarithm. + type + number + value + 2.718281828459045 + math.huge tooltip - A value larger than any other numeric value (infinity) + A value larger than any other numeric value (infinity). 1/0. type number value inf + math.nan + + tooltip + A number representing an error (not a number). 0/0. + type + number + value + nan + + math.phi + + tooltip + The golden ratio. (1 + math.sqrt(5))/2. + type + number + value + 1.618033988749895 + math.pi tooltip - The value of pi + The ratio of a circle's circumference to its diameter. math.tau/2. type number value 3.141592653589793 + math.sqrt2 + + tooltip + The square root of 2. math.sqrt(2). + type + number + value + 1.4142135623730951 + + math.tau + + tooltip + The ratio of a circle's circumference to its radius. math.pi*2. + type + number + value + 6.283185307179586 + quaternion.identity tooltip diff --git a/generated/secondlife.d.luau b/generated/secondlife.d.luau index 721c97c6..96ad527c 100644 --- a/generated/secondlife.d.luau +++ b/generated/secondlife.d.luau @@ -370,8 +370,13 @@ declare llprim: { --------------------------- declare math: { - pi: number, + e: number, huge: number, + nan: number, + phi: number, + pi: number, + sqrt2: number, + tau: number, abs: (n: number) -> number, acos: (n: number) -> number, asin: (n: number) -> number, diff --git a/generated/secondlife.docs.json b/generated/secondlife.docs.json index 26182dcf..32fdc9e9 100644 --- a/generated/secondlife.docs.json +++ b/generated/secondlife.docs.json @@ -305,14 +305,34 @@ "documentation": "Mathematical functions library.", "learn_more_link": "https://luau.org/library/#math-library" }, - "@sl-slua/global/math.pi": { - "documentation": "Value: 3.141592653589793
The value of pi", - "learn_more_link": "https://create.roblox.com/docs/reference/engine/libraries/math#pi" + "@sl-slua/global/math.e": { + "documentation": "Value: 2.718281828459045
The base of the natural logarithm.", + "learn_more_link": "https://create.roblox.com/docs/reference/engine/libraries/math#e" }, "@sl-slua/global/math.huge": { - "documentation": "Value: inf
A value larger than any other numeric value (infinity)", + "documentation": "Value: inf
A value larger than any other numeric value (infinity). 1/0.", "learn_more_link": "https://create.roblox.com/docs/reference/engine/libraries/math#huge" }, + "@sl-slua/global/math.nan": { + "documentation": "Value: nan
A number representing an error (not a number). 0/0.", + "learn_more_link": "https://create.roblox.com/docs/reference/engine/libraries/math#nan" + }, + "@sl-slua/global/math.phi": { + "documentation": "Value: 1.618033988749895
The golden ratio. (1 + math.sqrt(5))/2.", + "learn_more_link": "https://create.roblox.com/docs/reference/engine/libraries/math#phi" + }, + "@sl-slua/global/math.pi": { + "documentation": "Value: 3.141592653589793
The ratio of a circle's circumference to its diameter. math.tau/2.", + "learn_more_link": "https://create.roblox.com/docs/reference/engine/libraries/math#pi" + }, + "@sl-slua/global/math.sqrt2": { + "documentation": "Value: 1.4142135623730951
The square root of 2. math.sqrt(2).", + "learn_more_link": "https://create.roblox.com/docs/reference/engine/libraries/math#sqrt2" + }, + "@sl-slua/global/math.tau": { + "documentation": "Value: 6.283185307179586
The ratio of a circle's circumference to its radius. math.pi*2.", + "learn_more_link": "https://create.roblox.com/docs/reference/engine/libraries/math#tau" + }, "@sl-slua/global/math.abs": { "documentation": "Returns the absolute value of n.", "learn_more_link": "https://create.roblox.com/docs/reference/engine/libraries/math#abs" diff --git a/generated/secondlife_selene.yml b/generated/secondlife_selene.yml index c0af9938..dbc499d1 100644 --- a/generated/secondlife_selene.yml +++ b/generated/secondlife_selene.yml @@ -4414,14 +4414,34 @@ globals: an error if JSON is invalid. llprim.ParamsSetter: property: read-only - math.pi: + math.e: property: read-only type: number - description: The value of pi + description: The base of the natural logarithm. math.huge: property: read-only type: number - description: A value larger than any other numeric value (infinity) + description: A value larger than any other numeric value (infinity). 1/0. + math.nan: + property: read-only + type: number + description: A number representing an error (not a number). 0/0. + math.phi: + property: read-only + type: number + description: The golden ratio. (1 + math.sqrt(5))/2. + math.pi: + property: read-only + type: number + description: The ratio of a circle's circumference to its diameter. math.tau/2. + math.sqrt2: + property: read-only + type: number + description: The square root of 2. math.sqrt(2). + math.tau: + property: read-only + type: number + description: The ratio of a circle's circumference to its radius. math.pi*2. math.abs: args: - type: number diff --git a/slua_definitions.yaml b/slua_definitions.yaml index d191752b..cb33c6c1 100644 --- a/slua_definitions.yaml +++ b/slua_definitions.yaml @@ -1572,14 +1572,34 @@ modules: must-use: true fastcall: true constants: - - name: pi - comment: The value of pi + - name: e + comment: The base of the natural logarithm. type: number - value: 3.141592653589793 + value: 2.718281828459045 - name: huge - comment: A value larger than any other numeric value (infinity) + comment: A value larger than any other numeric value (infinity). 1/0. type: number value: inf + - name: nan + comment: A number representing an error (not a number). 0/0. + type: number + value: nan + - name: phi + comment: The golden ratio. (1 + math.sqrt(5))/2. + type: number + value: 1.618033988749895 + - name: pi + comment: The ratio of a circle's circumference to its diameter. math.tau/2. + type: number + value: 3.141592653589793 + - name: sqrt2 + comment: The square root of 2. math.sqrt(2). + type: number + value: 1.4142135623730951 + - name: tau + comment: The ratio of a circle's circumference to its radius. math.pi*2. + type: number + value: 6.283185307179586 - name: os comment: Operating system facilities library. functions: