Develop and Download Open Source Software

Browse Subversion Repository

Contents of /trunk/CRailCurve.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1 - (show annotations) (download) (as text)
Sun Aug 15 01:53:13 2010 UTC (13 years, 9 months ago) by okadu
File MIME type: text/x-chdr
File size: 694 byte(s)


1 #ifndef CRAILCURVE_H_INCLUDED
2 #define CRAILCURVE_H_INCLUDED
3
4 class CAxleObject;
5
6 /*
7 * レールカーブ
8 */
9 class CRailCurve{
10 protected:
11 float m_Radius; // 曲率半径
12 float m_SegLen; // セグメント長
13 bool m_CompSplit; // 補完制御点
14 VEC3 m_SplitPos; // 中間点座標
15 VEC3 m_SplitDir; // 中間点接線 (正規化済)
16 public:
17 virtual void Curve(VEC3 &, VEC3 &, VEC3 &, VEC3 &, bool, bool){}
18 virtual void ShowCompSplit(VEC3 &, VEC3 &){}
19 bool CalcSplit(VEC3 &, VEC3 &, VEC3 &, VEC3 &);
20 bool CalcRadius(VEC3 &, VEC3 &, VEC3 &, VEC3 &);
21 float CalcLength(VEC3 &, VEC3 &, VEC3 &, VEC3 &, float sum = 0.0f);
22 };
23
24 // 関数宣言
25 void CalcCantAxis(VEC3 *, VEC3 *, VEC3 *, float);
26
27 #endif

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26