Editing
Math Script
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
Collection of generic math-related global functions == Definition == <syntaxhighlight lang="papyrus"> ScriptName Math </syntaxhighlight> == Properties == None == Member Functions == None == Global Functions == :'''Float [[abs - Math|abs]](Float ''afValue'')''' :*Calculates the absolute value of its parameter. :'''Float [[acos - Math|acos]](Float ''afValue'')''' :*Calculates the arccosine of its value (returns degrees). :'''Float [[asin - Math|asin]](Float ''afValue'')''' :*Calculates the arcsine of its value (returns degrees). :'''Float [[atan - Math|atan]](Float ''afValue'')''' :*Calculates the arctangent of its value (returns degrees). :'''Int [[Ceiling - Math|Ceiling]](Float ''afValue'')''' :*Calculates the smallest integer greater than or equal to the value. :'''Float [[cos - Math|cos]](Float ''afValue'')''' :*Calculates the cosine of its value (in degrees). :'''Float [[DegreesToRadians - Math|DegreesToRadians]](Float ''afDegrees'')''' :*Converts its argument in degrees to radians. :'''Int [[Floor - Math|Floor]](Float ''afValue'')''' :*Calculates the largest integer less than or equal to the value. :'''Float [[pow - Math|pow]](Float ''x'', Float ''y'')''' :*Raises x to the y power. :'''Float [[RadiansToDegrees - Math|RadiansToDegrees]](Float ''afRadians'')''' :*Converts its argument in radians to degrees. :'''Float [[sin - Math|sin]](Float ''afValue'')''' :*Calculates the sine of its argument (in degrees). :'''Float [[sqrt - Math|sqrt]](Float ''afValue'')''' :*Calculates the square root of its argument. :'''Float [[tan - Math|tan]](Float ''afValue'')''' :*Calculates the tangent of its value (in degrees). == SKSE Global Functions == :'''Int [[LeftShift - Math|LeftShift]](Int ''value'', Int ''n'')''' :*Shifts value left by n number of bits. :'''Int [[RightShift - Math|RightShift]](Int ''value'', Int ''n'')''' :*Shifts value right by n number of bits. :'''Int [[LogicalAnd - Math|LogicalAnd]](Int ''arg1'', Int ''arg2'')''' :*ANDs arg1 with arg2. :'''Int [[LogicalOr - Math|LogicalOr]](Int ''arg1'', Int ''arg2'')''' :*ORs arg1 with arg2. :'''Int [[LogicalXor - Math|LogicalXor]](Int ''arg1'', Int ''arg2'')''' :*Exclusive ORs arg1 with arg2. :'''Int [[LogicalNot - Math|LogicalNot]](Int ''arg1'')''' :*Inverts arg1's bits. :'''Float [[Log - Math|Log]](Float ''arg1'')''' :*Returns arg1's '''natural''' logarithm (see discussion). == Events == None [[Category:Scripting]] [[Category:Papyrus]] [[Category:Script Objects]] [[Category:SKSE]] [[Category:SKSE Script Objects]]
Summary:
Please note that all contributions to the CreationKit Wiki are considered to be released under the Creative Commons Attribution-ShareAlike (see
CreationKit:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
Edit source
View history
More
Search
Navigation
Landing page
Tutorials
Game Systems
Editor Reference
Scripting Reference
Recent changes
Help
Tools
What links here
Related changes
Special pages
Page information
Page values