相關軟件:混沌數學之離散點集圖形DEMOhtml
相關代碼:spa
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;} };
相關截圖:code