bspline.h
来自「<B>DirectX9.0 3D游戏编程</B>」· C头文件 代码 · 共 36 行
H
36 行
/********************************************************************
* Advanced 3D Game Programming using DirectX 9.0 *
********************************************************************
* copyright (c) 2003 by Peter A Walsh and Adrian Perez *
* See license.txt for modification and distribution information *
********************************************************************/
#ifndef _BSPLINE_H
#define _BSPLINE_H
#include <vector>
using std::vector;
class cBSpline
{
vector< point3 > m_ctrlPoints;
static matrix4 m_baseMatrix;
public:
void AddCtrlPoint( point3& pt )
{
m_ctrlPoints.push_back( pt );
}
point3 Calc( float t, int i0 );
point3 CalcAbs( float t );
int NumPoints()
{
return m_ctrlPoints.size();
}
};
#endif //_BSPLINE_H
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?