Class Mathematics
Simple Min/Max for the wpf measures.
Inherited Members
Namespace: nanoFramework.UI
Assembly: nanoFramework.Graphics.dll
Syntax
public static class Mathematics
Methods
Abs(int)
Returns the absolute value of an int.
Declaration
public static int Abs(int a)
Parameters
Type | Name | Description |
---|---|---|
int | a | The int. |
Returns
Type | Description |
---|---|
int | The absolute value. |
Max(int, int)
Finds the maximum between 2 ints.
Declaration
public static int Max(int a, int b)
Parameters
Type | Name | Description |
---|---|---|
int | a | First int. |
int | b | Second int. |
Returns
Type | Description |
---|---|
int | The maximum value between a and b. |
Min(int, int)
Finds the minimum between 2 ints.
Declaration
public static int Min(int a, int b)
Parameters
Type | Name | Description |
---|---|---|
int | a | First int. |
int | b | Second int. |
Returns
Type | Description |
---|---|
int | The minimum value between a and b. |