|
static byte | RoundUp (this byte value, int factor) |
|
static byte | RoundDown (this byte value, int factor) |
|
static ushort | RoundUp (this ushort value, int factor) |
|
static ushort | RoundDown (this ushort value, int factor) |
|
static uint | RoundUp (this uint value, int factor) |
|
static uint | RoundDown (this uint value, int factor) |
|
static short | RoundUp (this short value, int factor) |
|
static short | RoundDown (this short value, int factor) |
|
static int | RoundUp (this int value, int factor) |
|
static int | RoundDown (this int value, int factor) |
|
static long | RoundUp (this long value, int factor) |
|
static long | RoundDown (this long value, int factor) |
|
◆ RoundDown() [1/6]
static byte BrawlLib.Internal.RoundingExtensions.RoundDown |
( |
this byte |
value, |
|
|
int |
factor |
|
) |
| |
|
inlinestatic |
16 {
17 if (factor <= 0)
18 {
19 return value;
20 }
21
22 return (byte) (value - value % factor);
23 }
◆ RoundDown() [2/6]
static int BrawlLib.Internal.RoundingExtensions.RoundDown |
( |
this int |
value, |
|
|
int |
factor |
|
) |
| |
|
inlinestatic |
96 {
97 if (factor <= 0)
98 {
99 return value;
100 }
101
102 return value - value % factor;
103 }
◆ RoundDown() [3/6]
static long BrawlLib.Internal.RoundingExtensions.RoundDown |
( |
this long |
value, |
|
|
int |
factor |
|
) |
| |
|
inlinestatic |
116 {
117 if (factor <= 0)
118 {
119 return value;
120 }
121
122 return value - value % factor;
123 }
◆ RoundDown() [4/6]
static short BrawlLib.Internal.RoundingExtensions.RoundDown |
( |
this short |
value, |
|
|
int |
factor |
|
) |
| |
|
inlinestatic |
76 {
77 if (factor <= 0)
78 {
79 return value;
80 }
81
82 return (short) (value - value % factor);
83 }
◆ RoundDown() [5/6]
static uint BrawlLib.Internal.RoundingExtensions.RoundDown |
( |
this uint |
value, |
|
|
int |
factor |
|
) |
| |
|
inlinestatic |
56 {
57 if (factor <= 0)
58 {
59 return value;
60 }
61
62 return (uint) (value - value % factor);
63 }
◆ RoundDown() [6/6]
static ushort BrawlLib.Internal.RoundingExtensions.RoundDown |
( |
this ushort |
value, |
|
|
int |
factor |
|
) |
| |
|
inlinestatic |
36 {
37 if (factor <= 0)
38 {
39 return value;
40 }
41
42 return (ushort) (value - value % factor);
43 }
◆ RoundUp() [1/6]
static byte BrawlLib.Internal.RoundingExtensions.RoundUp |
( |
this byte |
value, |
|
|
int |
factor |
|
) |
| |
|
inlinestatic |
6 {
7 if (factor <= 0)
8 {
9 return value;
10 }
11
12 return (byte) (value + (factor - 1) - (value + (factor - 1)) % factor);
13 }
◆ RoundUp() [2/6]
static int BrawlLib.Internal.RoundingExtensions.RoundUp |
( |
this int |
value, |
|
|
int |
factor |
|
) |
| |
|
inlinestatic |
86 {
87 if (factor <= 0)
88 {
89 return value;
90 }
91
92 return value + (factor - 1) - (value + (factor - 1)) % factor;
93 }
◆ RoundUp() [3/6]
static long BrawlLib.Internal.RoundingExtensions.RoundUp |
( |
this long |
value, |
|
|
int |
factor |
|
) |
| |
|
inlinestatic |
106 {
107 if (factor <= 0)
108 {
109 return value;
110 }
111
112 return value + (factor - 1) - (value + (factor - 1)) % factor;
113 }
◆ RoundUp() [4/6]
static short BrawlLib.Internal.RoundingExtensions.RoundUp |
( |
this short |
value, |
|
|
int |
factor |
|
) |
| |
|
inlinestatic |
66 {
67 if (factor <= 0)
68 {
69 return value;
70 }
71
72 return (short) (value + (factor - 1) - (value + (factor - 1)) % factor);
73 }
◆ RoundUp() [5/6]
static uint BrawlLib.Internal.RoundingExtensions.RoundUp |
( |
this uint |
value, |
|
|
int |
factor |
|
) |
| |
|
inlinestatic |
46 {
47 if (factor <= 0)
48 {
49 return value;
50 }
51
52 return (uint) (value + (factor - 1) - (value + (factor - 1)) % factor);
53 }
◆ RoundUp() [6/6]
static ushort BrawlLib.Internal.RoundingExtensions.RoundUp |
( |
this ushort |
value, |
|
|
int |
factor |
|
) |
| |
|
inlinestatic |
26 {
27 if (factor <= 0)
28 {
29 return value;
30 }
31
32 return (ushort) (value + (factor - 1) - (value + (factor - 1)) % factor);
33 }
The documentation for this class was generated from the following file:
- BrawlLib/Internal/RoundingExtensions.cs