|
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 nWeight) |
| 判断点是否在线段上
|
|
UI_EXP BOOL | PtInRegion (POINT pt, std::vector< POINT > &points) |
| 判断点是否在points点围成的区域内
|
|
UI_EXP BOOL | PtInRegion (POINT pt, const POINT points[], int nlen) |
|
UI_EXP BOOL | LineCrossPoint (POINT line1_p1, POINT line1_p2, POINT line2_p1, POINT line2_p2, POINT &ptCross) |
| 线段在各自延长线上存在交点
|
|
UI_EXP BOOL | LineCrossPointInside (POINT line1_p1, POINT line1_p2, POINT line2_p1, POINT line2_p2, POINT &ptCross) |
| 线段上的交点,不包括各自延长线
|
|
UI_EXP void | RectLayoutCalculator (LayoutPosition *objs, int len, RECT rcBox, UINT align, BOOL bHorz, int interval, BOOL bReverse) |
| 根据尺寸列表,计算在区域中的位置
|
|
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轴的夹角
|
|