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