Title |
Function |
Function Name |
No |
format MTH_INIT_CURVEWORK (WORK_AREA, POINT_MAX) Input WORK_AREA: Work area name POINT_MAX: Maximum number of input points Function Defines the work area required to execute the curve calculation function in the user area. The pointer of this definition area is passed as a parameter to each curve calculation function. The reserved capacity is the maximum number of input points x 36 bytes. will be . The number of output coordinates is (in_n−1) * step + 1. Please prepare an array of size above .
Title |
Function |
Function Name |
No |
format Unit32 count = MTH_Curve2 (MthCurveWork * work, MthXy * in_aray, Unit32 in_n, Unit32 out_n, MthXy * out_aray) Input work: Work area pointer : in_aray: Input coordinate array : in_n: Number of input coordinates : out_n: Number of output coordinates Output out_aray: Output coordinate array Function value count: Number of output coordinates of 2 or more 0: Parameter error Function work specifies the work area secured by the MTH_INIT_CURVE macro. . in_aray specifies the input coordinate array pointer that passes the curve. in_n specifies the number of in_arays. Specify a value of 3 or greater. out_n specifies the number of out_arays. Specify a value of 2 or greater. out_aray is a pointer that receives the calculation result. An array of output coordinates that pass through the curve is returned .