混沌数学之ASin模型

相关软件:混沌数学之离散点集图形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;}
};

相关截图:

 

posted on 2014-09-15 15:05  叶飞影  阅读(1069)  评论(0编辑  收藏  举报