相关软件:混沌数学之离散点集图形DEMO
相关代码:
// http://wenku.baidu.com/view/7c6f4a000740be1e650e9a75.html // 肯特映射 class KentEquation : public DiscreteEquation { public: KentEquation() { m_StartX = 0.0f; m_StartY = 0.36f; m_ParamA = 0.01f; } void IterateValue(float x, float y, float& outX, float& outY) const { outX = x+0.00025f; if (y <= m_ParamA) { outY = y/m_ParamA; } else { outY = (1-y)/(1-m_ParamA); } } bool IsValidParamA() const {return true;} };
相关截图: