DirectOutputR1
DirectOutput framework R1 for virtual pinball cabinets.
Go to:
Overview
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
Properties
Events
Macros
Pages
IntExtensions.cs
Go to the documentation of this file.
1
using System;
2
using
System.Collections.Generic;
3
using
System.Linq;
4
using
System.Text;
5
6
10
public
static
class
IntExtensions
11
{
18
public
static
int
Limit(
this
int
i,
int
MinValue,
int
MaxValue)
19
{
20
if
(i < MinValue)
return
MinValue;
21
if
(i > MaxValue)
return
MaxValue;
22
return
i;
23
}
24
31
public
static
bool
IsBetween(
this
int
i,
int
MinValue,
int
MaxValue)
32
{
33
return
(i >= MinValue && i <= MaxValue);
34
}
35
40
public
static
int
AbsolutValue(
this
int
i)
41
{
42
43
return
Math.Abs(i);
44
}
45
46
}
47
DirectOutput
Extensions
IntExtensions.cs
Generated on Sat Mar 22 2014 14:40:44 for DirectOutputR1 by
1.8.3.1