|
| UI_EXP void | ComputeAxis (double *axis_min, double *axis_max, double *step_unit, double y_min, double y_max, int tick_count=5, double padding_ratio=0.05, int round_flag=1) |
| | 根据输入的范围,获得最恰当的坐标轴边界
|
| UI_EXP void | LinearFit (VecFloat2 *points, int len, double &k, double &b) |
| | 线性拟合-最小二乘法。拟合结果为 y= k * x + b
|
| UI_EXP void | LinearFitExp (VecFloat2 *points, int len, double &a, double &b) |
| | 非线性拟合指数函数-最小二乘法。拟合结果为 y= a * b^x
|
| UI_EXP void | LinearFitPower (VecFloat2 *points, int len, double &a, double &b) |
| | 非线性拟合幂函数-最小二乘法。拟合结果为 y= a * x^b
|
| UI_EXP double | InterpolationLagrange (VecFloat2 *points, int len, double xp) |
| | 拉格朗日插值,求任意点xp的Y坐标
|
| UI_EXP BOOL | PtInLine (POINT pt, POINT p1, POINT p2, int distance) |
| | 判断点是否在线段上
|
| UI_EXP BOOL | PtInRegion (POINT pt, std::vector< POINT > &points) |
| | 判断点是否在points点围成的区域内
|
| UI_EXP BOOL | PtInRegion (POINT pt, const POINT points[], int len) |
| UI_EXP BOOL | LineCrossPoint (POINT line1_p1, POINT line1_p2, POINT line2_p1, POINT line2_p2, POINT &pt_cross) |
| | 线段在各自延长线上存在交点
|
| UI_EXP BOOL | LineCrossPointInside (POINT line1_p1, POINT line1_p2, POINT line2_p1, POINT line2_p2, POINT &pt_cross) |
| | 线段上的交点,不包括各自延长线
|
| UI_EXP void | RectLayoutCalculator (LayoutPosition *objs, int len, RECT rc_box, UINT align, BOOL is_horz, int interval, BOOL is_reverse) |
| | 根据尺寸列表,计算在区域中的位置
|
| UI_EXP void | TrianglePoint (POINT pt[], RECT rect, int dir, int size) |
| | 三角形顶点源
|
| UI_EXP BOOL | IsSameSign (double v1, double v2) |
| | 同号
|
| UI_EXP double | VectorAngle (double x1, double y1, double x2, double y2) |
| | 向量基于x轴的夹角
|