Axiom.ParticleFX.ColorFaderAffector.AdjustWithClamp C# (CSharp) 메소드

AdjustWithClamp() 보호된 메소드

protected AdjustWithClamp ( float component, float adjust ) : float
component float
adjust float
리턴 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;
		}