相關DEMO參見:混沌數學之離散點集圖形DEMOhtml
相關代碼:spa
// http://wenku.baidu.com/view/d51372a60029bd64783e2cc0.html?re=view // http://wenku.baidu.com/view/ac9b57ea172ded630b1cb65b.html class HenonEquation : public DiscreteEquation { public: HenonEquation() { m_StartX = 0.01f; m_StartY = 0.01f; m_ParamA = 1.28f; m_ParamB = 0.3f; } void IterateValue(float x, float y, float& outX, float& outY) const { outX = 1 - m_ParamA*x*x + m_ParamB*y; outY = x; } bool IsValidParamA() const {return true;} bool IsValidParamB() const {return true;} };
相關截圖:code