相关软件:混沌数学之离散点集图形DEMO
相关代码:
class ASinEquation : public DiscreteEquation
{
public:
ASinEquation()
{
m_StartX = 0.0f;
m_StartY = PI*0.5f; m_ParamA = 0.5f;
m_ParamB = 1.0f;
} void IterateValue(float x, float y, float& outX, float& outY) const
{
outX = x+0.00025f;
outY = m_ParamA*sinf(m_ParamB*y);
} bool IsValidParamA() const {return true;}
bool IsValidParamB() const {return true;}
};
相关截图: