Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
en:software:qview:qview_6:qcl_library:vc12fndxpnt [2017/02/03 15:13] – [DIFFERENZE RISPETTO A VECCHIA RELEASE] qem103 | en:software:qview:qview_6:qcl_library:vc12fndxpnt [2019/08/29 17:01] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== VC12FndXPnt ====== | ||
+ | |||
+ | **V = **// | ||
+ | |||
+ | **C = **// | ||
+ | |||
+ | *** = **// | ||
+ | |||
+ | The VC12FndXPnt function __calculates the x-coordinate of a point to a line__ with 2 points of the straight line (X1-Y1 and X2-Y2) and the y-coordinate of the point (YP). | ||
+ | |||
+ | {{: | ||
+ | |||
+ | ===== IMPLEMENTATION ===== | ||
+ | |||
+ | **VC12FndXPnt (pointX1, | ||
+ | |||
+ | Parameters: | ||
+ | |||
+ | ^IN/ | ||
+ | | IN | SYSTEM or GLOBAL | ||
+ | | IN | SYSTEM or GLOBAL | ||
+ | | IN | SYSTEM or GLOBAL | ||
+ | | IN | SYSTEM or GLOBAL | ||
+ | | OUT | SYSTEM or GLOBAL | ||
+ | | IN | SYSTEM or GLOBAL | ||
+ | |||
+ | N.B.: pointX1, pointY1, pointY1, pointY2 between them must be the same size (DIM). All parameters must belong to the same type (SYSTEM or GLOBAL). | ||
+ | |||
+ | === Example === | ||
+ | |||
+ | Execute the calculation when the " | ||
+ | |||
+ | <code QCL> | ||
+ | IF gfCalc | ||
+ | gfCalc = 0 | ||
+ | pointX1 = 100 ;Sets the point values of the straight line | ||
+ | pointY1 = 600 | ||
+ | pointX2 = 200 | ||
+ | pointY2 = 1200 | ||
+ | pointYP = 1000 | ||
+ | VC12FndXPnt (pointX1, | ||
+ | gsAscissaCal = pointXP | ||
+ | ENDIF | ||
+ | </ | ||
+ | |||
+ | === DIFFERENCES FROM THE OLD RELEASE === | ||
+ | |||
+ | * (from 10 to 11) Added the possibility to declare parameters " | ||
+ | * (from 11 to 12) Introduced the possibility to use GLOBAL type parameters | ||