拟合曲线类 更多...
#include <FitCurve.hpp>
Public 成员函数 | |
| FitCurve ()=default | |
| 默认构造函数 | |
| FitCurve (const std::vector< Point< T > > &points) | |
| 构造函数 | |
| void | addPoint (const Point< T > &point) |
| 添加点 | |
| int | count () const |
| 控制点的数量 | |
| float | getTension () const |
| 拟合曲线的张力 | |
| bool | isClosed () const |
| 拟合曲线是否闭合 | |
| template<typename U > requires std::is_arithmetic_v<U> | |
| operator FitCurve< U > () const | |
| 类型转换函数 | |
| void | setClosed (bool closed) |
| 设置拟合曲线是否闭合 | |
| void | setTension (float tension) |
| 设置拟合曲线的张力 | |
友元 | |
| class | Graphics |
| std::ostream & | operator<< (std::ostream &os, const FitCurve< T > &curve) |
| 流操作符重载 | |
| class | Path |
|
default |
默认构造函数
|
inline |
构造函数
| points | 点集 |
|
inline |
添加点
| point | 点 |
|
inline |
控制点的数量
|
inline |
拟合曲线的张力
|
inline |
拟合曲线是否闭合
|
inline |
类型转换函数
| U | 目标类型 |
|
inline |
设置拟合曲线是否闭合
| closed | 是否闭合 |
|
inline |
设置拟合曲线的张力
| tension | 张力 |
|
friend |
流操作符重载
| os | 输出流 |
| curve | 拟合曲线 |