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
DoubleExtensions.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
DoubleExtensions
11
{
18
public
static
double
Limit(
this
double
d,
double
MinValue,
double
MaxValue)
19
{
20
if
(d < MinValue)
return
MinValue;
21
if
(d > MaxValue)
return
MaxValue;
22
return
d;
23
}
24
25
26
33
public
static
bool
IsBetween(
this
double
i,
double
MinValue,
double
MaxValue)
34
{
35
return
(i >= MinValue && i <= MaxValue);
36
}
37
38
}
39
DirectOutput
Extensions
DoubleExtensions.cs
Generated on Sat Mar 22 2014 14:40:44 for DirectOutputR1 by
1.8.3.1