Mercurial > repos > IBBoard
view CustomMath/Comparisons.cs @ 0:961030992bd2
Initial commit of IBBoard libraries
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Fri, 19 Dec 2008 11:13:48 +0000 |
parents | |
children | 0352fa33ee8f |
line wrap: on
line source
using System; namespace IBBoard.CustomMath { /// <summary> /// Summary description for Comparisons. /// </summary> public class Comparisons { public static bool ValueWithinAmount(int baseline, int val, int delta) { int top = baseline + delta; int bottom = baseline - delta; return (val<=top && val>=bottom); } } }