|
◆ cubicSplinesIntersectBox()
bool mgnear::cubicSplinesIntersectBox |
( |
const Box2d & |
box, |
|
|
int |
n, |
|
|
const Point2d * |
knots, |
|
|
const Vector2d * |
knotvs, |
|
|
bool |
closed = false , |
|
|
bool |
hermite = true |
|
) |
| |
|
static |
判断三次样条曲线是否与矩形相交
- 参数
-
[in] | box | 指定的矩形 |
[in] | n | 三次样条曲线的型值点的点数 |
[in] | knots | 型值点坐标数组,元素个数为n |
[in] | knotvs | 型值点的切矢量数组,元素个数为n |
[in] | closed | 是否为闭合曲线 |
[in] | hermite | 是否为Hermite曲线,不是则切矢加型值点直接形成Bezier段的控制点 |
- 返回
- 是否相交
- 参见
- mgcurv::cubicSplines, mgcurv::cubicSplinesBox
|