Example #1
0
 static public short BindOffset(this short item)
 {
     return(item.BindBetween(-1, 1));
 }
Example #2
0
 static public short BindIndex(this short item, short count)
 {
     return(item.BindBetween(0, (short)(count - 1)));
 }
Example #3
0
 static public short BindPercent(this short item)
 {
     return(item.BindBetween(0, 1));
 }
Example #4
0
 static public short BindBetween(this short item, ShortRange range)
 {
     return(item.BindBetween(range.x1, range.x2));
 }