📄 mgcbeziercurve3.h
字号:
// Magic Software, Inc.
// http://www.magic-software.com
// Copyright (c) 2000, All Rights Reserved
//
// Source code from Magic Software is supplied under the terms of a license
// agreement and may not be copied or disclosed except in accordance with the
// terms of that agreement. The various license agreements may be found at
// the Magic Software web site. This file is subject to the license
//
// FREE SOURCE CODE
// http://www.magic-software.com/License/free.pdf
#ifndef MGCBEZIERCURVE3_H
#define MGCBEZIERCURVE3_H
#include "MgcSingleCurve3.h"
class MgcBezierCurve3 : public MgcSingleCurve3
{
public:
MgcBezierCurve3 (int iDegree, MgcVector3* akCtrlPoint);
virtual ~MgcBezierCurve3 ();
int GetDegree () const;
const MgcVector3* GetControlPoints () const;
virtual MgcVector3 GetPosition (MgcReal fTime) const;
virtual MgcVector3 GetFirstDerivative (MgcReal fTime) const;
virtual MgcVector3 GetSecondDerivative (MgcReal fTime) const;
virtual MgcVector3 GetThirdDerivative (MgcReal fTime) const;
virtual MgcReal GetVariation (MgcReal fT0, MgcReal fT1,
const MgcVector3* pkP0 = 0, const MgcVector3* pkP1 = 0) const;
protected:
int m_iDegree;
int m_iNumCtrlPoints;
MgcVector3* m_akCtrlPoint;
MgcVector3* m_akDer1CtrlPoint;
MgcVector3* m_akDer2CtrlPoint;
MgcVector3* m_akDer3CtrlPoint;
MgcReal** m_aafChoose;
// variation support
int m_iTwoDegree;
int m_iTwoDegreePlusOne;
MgcReal* m_afSigma;
MgcReal* m_afRecip;
MgcReal* m_afPowT0;
MgcReal* m_afPowOmT0;
MgcReal* m_afPowT1;
MgcReal* m_afPowOmT1;
};
#include "MgcBezierCurve3.inl"
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -