BBGamelib.FloatUtils.Small C# (CSharp) Method

Small() public static method

public static Small ( float a, float b ) : bool
a float
b float
return bool
		public static bool Small(float a, float b){
			bool equal = EQ (a, b);
			if (equal)
				return false;
			else
				return a < b;
		}
		

Usage Example

Beispiel #1
0
        public override void startWithTarget(object aTarget)
        {
            base.startWithTarget(aTarget);

            //Calculate angle
            _startAngle = ((CCNode)_target).rotation;
            if (FloatUtils.Big(_startAngle, 0))
            {
                _startAngle = _startAngle % 360.0f;
            }
            else
            {
                _startAngle = _startAngle % -360.0f;
            }

            _diffAngle = _dstAngle - _startAngle;
            if (FloatUtils.Big(_diffAngle, 180))
            {
                _diffAngle -= 360;
            }
            if (FloatUtils.Small(_diffAngle, -180))
            {
                _diffAngle += 360;
            }
        }
All Usage Examples Of BBGamelib.FloatUtils::Small