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