// ===========================================================================//	KawakamisChaos.java	1996 Yushin Hozumi All rights reserved.//							Author:Yushin Hozumi// ===========================================================================package	StudioRAIN.chaos;import StudioRAIN.geometry.*;import StudioRAIN.chaos.*;public class KawakamisChaos implements ChaosGenerator2D{	float a, b;	OneParameterFunction f = null;		public KawakamisChaos( float inA, float inB, OneParameterFunction inF )	{		a = inA;		b = inB;		f = inF;	}	public Vector2D transform( Vector2D inVector )	{		float theX = inVector.getX();		float theY = inVector.getY();		return new Vector2D		(			theY + a * theX + f.getValue( theX ),			b * theX		);	}	public String getScript()	{		return 			"x(n+1) = y(n) + ( " + Float.toString( a ) + " )x(n) + ( " + f.getScript( "x(n)" ) + " )\n" +			"y(n+1) = ( " + Float.toString( b ) + " )x(n)\n";	}}