Class Math2
Simple calculation functions.
public static class Math2
Namespace: Au.More
Assembly: Au.dll
Inheritance
Methods
| Name | Description |
|---|---|
| AlignUp(int, uint) | If value is divisible by alignment, returns value. Else returns the nearest bigger number that is divisible by alignment. |
| AlignUp(uint, uint) | If value is divisible by alignment, returns value. Else returns the nearest bigger number that is divisible by alignment. |
| AngleFromXY(int, int) | Calculates angle degrees from coordinates x and y. |
| Distance(POINT, POINT) | Calculates distance between two points. |
| Distance(RECT, POINT) | Calculates distance between rectangle and point. |
| HiByte(ushort) | Gets bits 9-16 as |
| HiShort(nint) | Gets bits 17-32 as |
| HiWord(nint) | Gets bits 17-32 as |
| LoByte(ushort) | Gets bits 1-8 as |
| LoShort(nint) | Gets bits 1-16 as |
| LoWord(nint) | Gets bits 1-16 as |
| MakeLparam(POINT) | Creates |
| MakeLparam(int, int) | Creates |
| MakeLparam(uint, uint) | Creates |
| MakeWord(int, int) | Creates |
| MakeWord(uint, uint) | Creates |
| MulDiv(int, int, int) | Returns |
| NintToPOINT(nint) | Converts |
| PercentFromValue(double, double) | Calculates how many % of whole is part: |
| PercentFromValue(int, int, bool) | Calculates how many % of whole is part: |
| PercentToValue(double, double) | Returns percent % of whole: |
| PercentToValue(int, int, bool) | Returns percent % of whole: |
| SwapBits(int, int, int, int) | Swaps two ranges of bits. |
| SwapBits(uint, int, int, int) | Swaps two ranges of bits. |
| Swap<T>(ref T, ref T) | Swaps values of two variables: |