Difference between revisions of "How to Use Embedded Math in VTube Float Point Edit Boxes"

From ATTWiki
Jump to: navigation, search
(STEP 2 - RADII TAB MENU)
(Constants and Functions Available in Float Point Edit Boxes)
Line 72: Line 72:
  
 
</table>
 
</table>
 
<br><br>
 
<br>
 
 
=Constants and Functions Available in Float Point Edit Boxes=
 
 
The calculator has many built-in constants and functions.<br><br>
 
 
A ''constant'' is like the universal value for Pi (pronounced "Pie").  It's fixed value is 3.142.... (and so on).<br>
 
Type '''pi''' and press enter in any float point edit box, and VTube will fill in '''3.142'''.<br><br>
 
A ''function'' takes one or more values and returns a single result.<br>
 
Type '''Length3D(0,0,0,10,10,10)''' into an float point edit box and VTube will fill in '''17.321'''. This is the 3D distance between the two points - 0,0,0 and 10,10,10.<br><br>
 
 
Here is a list of constants and functions that you can use:
 
 
<table cellpadding=10>
 
 
<tr valign=top>
 
<td width=100 bgcolor="#F0F0F0">
 
Symbol
 
</td>
 
<td width=300>
 
Description
 
</td>
 
<td width=300>
 
Example Entry in Edit Box
 
</td>
 
<td width=300>
 
Example Result in Edit Box
 
</td>
 
</tr>
 
 
 
<tr valign=top>
 
<td bgcolor="#F0F0F0">
 
+
 
</td>
 
<td>
 
Add
 
</td>
 
<td>
 
1 + 1
 
</td>
 
<td>
 
2
 
</td>
 
</tr>
 
 
<tr valign=top>
 
<td bgcolor="#F0F0F0">
 
-
 
</td>
 
<td>
 
Subtract
 
</td>
 
<td>
 
10 - 5
 
</td>
 
<td>
 
5
 
</td>
 
 
</tr>
 
 
<tr valign=top>
 
<td bgcolor="#F0F0F0">
 
<nowiki>*</nowiki>
 
</td>
 
<td>
 
Multiply
 
</td>
 
<td>
 
3 * 6
 
</td>
 
<td>
 
18
 
</td>
 
 
</tr>
 
 
<tr valign=top>
 
<td bgcolor="#F0F0F0">
 
/
 
</td>
 
<td>
 
Float Point Divide
 
</td>
 
<td>
 
3 / 8
 
</td>
 
<td>
 
0.375
 
</td>
 
</tr>
 
 
<tr valign=top>
 
<td bgcolor="#F0F0F0">
 
^
 
</td>
 
<td>
 
Raised to the power
 
</td>
 
<td>
 
4 ^ 5
 
</td>
 
<td>
 
1024
 
</td>
 
</tr>
 
 
<tr valign=top>
 
<td bgcolor="#F0F0F0">
 
Sqr
 
</td>
 
<td>
 
Square root
 
</td>
 
<td>
 
sqr(64)
 
</td>
 
<td>
 
8
 
</td>
 
 
</tr>
 
 
<tr valign=top>
 
<td bgcolor="#F0F0F0">
 
!
 
</td>
 
<td>
 
Factorial
 
</td>
 
<td>
 
5!
 
</td>
 
<td>
 
120
 
</td>
 
</tr>
 
 
 
<tr valign=top>
 
<td bgcolor="#F0F0F0">
 
Pi
 
</td>
 
<td>
 
Returns the constant value referred to as Pi
 
</td>
 
<td>
 
Pi
 
</td>
 
<td>
 
3.14159265359
 
</td>
 
 
</tr>
 
 
 
<tr valign=top>
 
<td bgcolor="#F0F0F0">
 
Length3D
 
</td>
 
<td>
 
Returns the 3D length between two 3D points.
 
</td>
 
<td>
 
Length3D(0,0,0,10,10,10)
 
</td>
 
<td>
 
17.321
 
</td>
 
</tr>
 
 
 
</table>
 
 
 
  
 
<br><br>
 
<br><br>

Revision as of 22:11, 7 February 2020

Vtube-step logo 2.png Vtube-laser logo 1.96.png

This article shows how to use embedded math functions in VTube float point edit boxes.

Contents


The Float Point Edit Box Embedded Calculator

As of version 3, VTube-STEP and VTube-LASER includes an embedded calculator in the float point edit boxes anywhere in the main user interface.

See this example of how it works.


This is the tube before the change.

Editcalc 002.png

Choose the LL value in the LRA grid.

Editcalc 001.png

Subtract 5.2 like this:

Editcalc 003.png

The VTube calculator returns the result in the edit box like this:

Editcalc 004.png

Now reverse-calc the data and this is the new tube.

Editcalc 005.png




STEP 3 - PRESS the "Resynchronize Radii to Default" BUTTON

Press the button to change all the radii.

Vts v2.9.10 resync radii button.png





STEP 4 - PRESS the "F2" BUTTON to REFRESH THE PARAMETRICS

Pressing F2 will refresh the parametric model and show the radius change like this.

Vts v2.9.10 refreshF2 radiuschange.png





Other Pages