Anonymous
Not logged in
Talk
Contributions
Create account
Log in
DivaDocs
Search
Editing
Expression Components and Instructions
(section)
From DivaDocs
Namespaces
Page
Discussion
More
More
Page actions
Read
Edit
Edit source
History
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!
=== Function === f [function] The '''f''' instruction gets the value on the stack, applies the function, then pushes the value. The function used can be: {| class="wikitable" |+ |neg |Negate the value |- |sin |[[wikipedia:Sine_and_cosine|Sine]] function (in degrees) |- |cos |[[wikipedia:Sine_and_cosine|Cosine]] function (in degrees) |- |tan |[[wikipedia:Trigonometric_functions#tangent|Tangent]] function (in degrees) |- |abs |[[wikipedia:Absolute_value|Absolute Value]] function |- |sqrt |[[wikipedia:Square_root|Square Root]] |- |av |Multiplies value by 0.1 |- |floor |Outputs the [[wikipedia:Floor_and_ceiling_functions|floor]] (lowest integer) of a value |- |ceil |Outputs the [[wikipedia:Floor_and_ceiling_functions|ceiling]] (highest integer) of a value |- |round |[[wikipedia:Rounding|Rounds]]<nowiki/>the value |- |asin |[[wikipedia:Inverse_trigonometric_functions|Inverse Sine]] function |- |acos |[[wikipedia:Inverse_trigonometric_functions|Inverse Cosine]] function |- |atan |[[wikipedia:Inverse_trigonometric_functions|Inverse Tangent]] function |- |log |[[wikipedia:Logarithm|Logarithm]] function |- |exp |[[wikipedia:Exponentiation|Exponentation]] function |- |rand_0_1 |Unimplemented, makes value 0. (It is meant to randomly generate between 0 and 1) |} Function info from Skyth For example: = 0 v 1 f av would set the X position of the bone to 0.1 (since the 1 is multiplied by 0.1)
Summary:
Please note that all contributions to DivaDocs are considered to be released under the Creative Commons Attribution-ShareAlike (see
DivaDocs: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
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
Wiki tools
Wiki tools
Page tools
Page tools
User page tools
More
What links here
Related changes
Page information
Page logs