Please enable JavaScript to use RhodeCode Enterprise
Commit Description:
Fixes to package script.
Commit Description:
Fixes to package script.
using System ;
namespace isometricparkfna
{
public class MathUtils
{
public MathUtils ()
{
}
public static bool Between ( float val , float x , float y )
{
return (( x < val && val < y ) || ( y < val && val < x ));
}
public static bool Between ( int val , int x , int y )
{
return (( x < val && val < y ) || ( y < val && val < x ));
}
protected float Decrement ( float value , float delta )
{
float magnitude = Math . Abs ( value );
//If distance from zero is less than our delta,
//go to zero to prevent overshooting:
if ( magnitude < delta )
{
return 0.0f ;
}
else if ( value > 0 )
{
return value - delta ;
}
else if ( value < 0 )
{
return value + delta ;
}
else
{
return 0.0f ;
}
}
}
}
Site-wide shortcuts
/
Use quick search box
g h
Goto home page
g g
Goto my private gists page
g G
Goto my public gists page
n r
New repository page
n g
New gist page
Repositories
g s
Goto summary page
g c
Goto changelog page
g f
Goto files page
g F
Goto files page with file search activated
g p
Goto pull requests page
g o
Goto repository settings
g O
Goto repository permissions settings