Difference between revisions of "How to Use Embedded Math in VTube Float Point Edit Boxes"
From ATTWiki
(→Symbols, Constants, and Functions) |
(→Symbols, Constants, and Functions) |
||
Line 181: | Line 181: | ||
| style="text-align: center; background-color:#9aff99;" | sqr(64) | | style="text-align: center; background-color:#9aff99;" | sqr(64) | ||
| style="text-align: center; background-color:#ffffff;" | 8 | | style="text-align: center; background-color:#ffffff;" | 8 | ||
+ | | | ||
+ | |- | ||
+ | | style="text-align: center; background-color:#dae8fc;" | Int | ||
+ | | | ||
+ | | style="text-align: center; background-color:#ffffff;" | Truncate to an integer | ||
+ | | | ||
+ | | style="text-align: center; background-color:#9aff99;" | int(6.8) | ||
+ | | style="text-align: center; background-color:#ffffff;" | 6 | ||
| | | | ||
|- | |- | ||
Line 187: | Line 195: | ||
| style="text-align: center; background-color:#ffffff;" | Fractional part | | style="text-align: center; background-color:#ffffff;" | Fractional part | ||
| | | | ||
− | | style="text-align: center; background-color:#9aff99;" | frac( | + | | style="text-align: center; background-color:#9aff99;" | frac(6.8) |
− | | style="text-align: center; background-color:#ffffff;" | 0. | + | | style="text-align: center; background-color:#ffffff;" | 0.8 |
| | | | ||
|- | |- |
Revision as of 03:37, 9 February 2020
This article shows how to use embedded math functions in VTube float point edit boxes.
|
- Back to VTube-LASER
- Back to VTube-STEP
Contents |
The Floating Point Edit Box Embedded Calculator
As of version 3, VTube-STEP and VTube-LASER includes an embedded calculator in the floating point edit boxes anywhere in the main user interface.
See this example of how it works.
This is the tube before the change. |
|
Choose the LL value in the LRA grid. |
|
Subtract 5.2 like this: |
|
The VTube calculator returns the result in the edit box like this: |
|
Now reverse-calc the data and this is the new tube. |
Symbols, Constants, and Functions
Symbol | Description | Entry | Result | |||
---|---|---|---|---|---|---|
+ | Add | 1+1 | 2 | |||
- | Subtract | 9-5 | 4 | |||
* | Multiply | 3*6 | 18 | |||
/ | Divide | 3/8 | 0.375 | |||
\ | Integer divide by | 9/2 | 4 | |||
! | Factorial | 5! | 120 | |||
( ) | Nesting Parenthesis | 2 * (5+4) | 18 | |||
mod | Modulo (remainder) | 7 mod 4 | 3 | |||
^ | Raised to the power of | 4 ^ 5 | 1024 | |||
Length2D | Length between 2D points | Length2D(0,0,5,5) | ||||
Length3D | Length between 3D points | Length3D(0,0,0,10,10,10) | ||||
Sqr | Find the square root | sqr(64) | 8 | |||
Int | Truncate to an integer | int(6.8) | 6 | |||
Frac | Fractional part | frac(6.8) | 0.8 | |||
Abs | Absolute value | abs(-8) | 8 | |||
Pi | The constant value for Pi | pi/180 | 0.01745329 | |||
Cos | Cosine | cos(pi) | -1 | |||
Sin | Sine | sin(pi/2) | 1 |
Other Pages
- See VTube-LASER
- See VTube-STEP