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

From ATTWiki
Jump to: navigation, search
(Symbols, Constants, and Functions)
(Symbols, Constants, and Functions)
Line 81: Line 81:
 
! style="background-color:#efefef;" | Symbol
 
! style="background-color:#efefef;" | Symbol
 
!  
 
!  
! style="background-color:#efefef;" | Description
+
! style="background-color:#efefef;width=300px" | Description
 
!  
 
!  
 
! style="background-color:#efefef;" | Entry
 
! style="background-color:#efefef;" | Entry

Revision as of 18:56, 10 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 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.

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




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) 17.321
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 3.141592653
Cos Cosine cos(pi) -1
Sin Sine sin(pi/2) 1
Tan Tangent tan(1) 1.5575
Atan Arc tangent atan(0) 0
TriangleBaseA Calculate the adjacent base of a right triangle with the angle and the hypotenuse length TriangleBaseA(5,10) 9.961947
TriangleBaseB Calculate the opposing base of a right triangle with the angle and the hypotenuse length TriangleBaseB(5,10) 0.871557


Other Pages