Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 47 additions & 2 deletions generated/lua_keywords_pretty.xml
Original file line number Diff line number Diff line change
Expand Up @@ -329,24 +329,69 @@ export type rotation = quaternion</string>
<key>type</key>
<string>PrimParamsSetterTypeMeta</string>
</map>
<key>math.e</key>
<map>
<key>tooltip</key>
<string>The base of the natural logarithm.</string>
<key>type</key>
<string>number</string>
<key>value</key>
<string>2.718281828459045</string>
</map>
<key>math.huge</key>
<map>
<key>tooltip</key>
<string>A value larger than any other numeric value (infinity)</string>
<string>A value larger than any other numeric value (infinity). 1/0.</string>
<key>type</key>
<string>number</string>
<key>value</key>
<string>inf</string>
</map>
<key>math.nan</key>
<map>
<key>tooltip</key>
<string>A number representing an error (not a number). 0/0.</string>
<key>type</key>
<string>number</string>
<key>value</key>
<string>nan</string>
</map>
<key>math.phi</key>
<map>
<key>tooltip</key>
<string>The golden ratio. (1 + math.sqrt(5))/2.</string>
<key>type</key>
<string>number</string>
<key>value</key>
<string>1.618033988749895</string>
</map>
<key>math.pi</key>
<map>
<key>tooltip</key>
<string>The value of pi</string>
<string>The ratio of a circle's circumference to its diameter. math.tau/2.</string>
<key>type</key>
<string>number</string>
<key>value</key>
<string>3.141592653589793</string>
</map>
<key>math.sqrt2</key>
<map>
<key>tooltip</key>
<string>The square root of 2. math.sqrt(2).</string>
<key>type</key>
<string>number</string>
<key>value</key>
<string>1.4142135623730951</string>
</map>
<key>math.tau</key>
<map>
<key>tooltip</key>
<string>The ratio of a circle's circumference to its radius. math.pi*2.</string>
<key>type</key>
<string>number</string>
<key>value</key>
<string>6.283185307179586</string>
</map>
<key>quaternion.identity</key>
<map>
<key>tooltip</key>
Expand Down
7 changes: 6 additions & 1 deletion generated/secondlife.d.luau
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
28 changes: 24 additions & 4 deletions generated/secondlife.docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -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<br>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<br>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<br>A value larger than any other numeric value (infinity)",
"documentation": "Value: inf<br>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<br>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<br>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<br>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<br>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<br>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"
Expand Down
26 changes: 23 additions & 3 deletions generated/secondlife_selene.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
28 changes: 24 additions & 4 deletions slua_definitions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Loading