Axiom.ParticleFX.ColorFaderAffector.AdjustWithClamp C# (CSharp) Méthode

AdjustWithClamp() protected méthode

protected AdjustWithClamp ( float component, float adjust ) : float
component float
adjust float
Résultat float
		protected float AdjustWithClamp( float component, float adjust )
		{
			component += adjust;

			// limit to range [0,1]
			if ( component < 0.0f )
				component = 0.0f;
			else if ( component > 1.0f )
				component = 1.0f;

			return component;
		}