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