Abacus
|
Provides maths functions with consistent function signatures across supported precisions. More...
Static Public Member Functions | |
static Fixed32 | Sqrt (Fixed32 v) |
static Fixed32 | Abs (Fixed32 v) |
static Fixed32 | Sin (Fixed32 v) |
static Fixed32 | Cos (Fixed32 v) |
static Fixed32 | Tan (Fixed32 v) |
static Fixed32 | ArcCos (Fixed32 v) |
static Fixed32 | ArcSin (Fixed32 v) |
static Fixed32 | ArcTan (Fixed32 v) |
static Fixed32 | ArcTan2 (Fixed32 y, Fixed32 x) |
static Fixed32 | ToRadians (Fixed32 input) |
static Fixed32 | ToDegrees (Fixed32 input) |
static Fixed32 | FromFraction (Int32 numerator, Int32 denominator) |
static Fixed32 | FromFraction (Int64 numerator, Int64 denominator) |
static Fixed32 | Min (Fixed32 a, Fixed32 b) |
static Fixed32 | Max (Fixed32 a, Fixed32 b) |
static Fixed32 | Clamp (Fixed32 value, Fixed32 min, Fixed32 max) |
static Fixed32 | Lerp (Fixed32 a, Fixed32 b, Fixed32 t) |
static Fixed32 | FromString (String str) |
static void | FromString (String str, out Fixed32 value) |
static Boolean | IsApproximatelyZero (Fixed32 value) |
static Boolean | ApproximateEquals (Fixed32 a, Fixed32 b) |
static Int32 | Sign (Fixed32 value) |
static Fixed32 | CopySign (Fixed32 x, Fixed32 y) |
Static Public Attributes | |
static readonly Fixed32 | Epsilon = (Fixed32) 0.000001 |
static readonly Fixed32 | E = Fixed32.CreateFrom (2.71828182845904523536028747135) |
static readonly Fixed32 | Half = Fixed32.CreateFrom (0.5) |
static readonly Fixed32 | Quarter = Fixed32.CreateFrom (0.25) |
static readonly Fixed32 | Log10E = Fixed32.CreateFrom (0.43429448190325182765112891892) |
static readonly Fixed32 | Log2E = Fixed32.CreateFrom (1.44269504088896340735992468100) |
static readonly Fixed32 | Pi = Fixed32.CreateFrom (3.14159265358979323846264338328) |
static readonly Fixed32 | HalfPi = Fixed32.CreateFrom (1.57079632679489661923132169164) |
static readonly Fixed32 | QuarterPi = Fixed32.CreateFrom (0.78539816339744830961566084582) |
static readonly Fixed32 | Root2 = Fixed32.CreateFrom (1.41421356237309504880168872421) |
static readonly Fixed32 | Root3 = Fixed32.CreateFrom (1.73205080756887729352744634151) |
static readonly Fixed32 | Tau = Fixed32.CreateFrom (6.28318530717958647692528676656) |
static readonly Fixed32 | Deg2Rad = Fixed32.CreateFrom (0.01745329251994329576923690768) |
static readonly Fixed32 | Rad2Deg = Fixed32.CreateFrom (57.29577951308232087679815481409) |
static readonly Fixed32 | Zero = Fixed32.CreateFrom (0.0) |
static readonly Fixed32 | One = Fixed32.CreateFrom (1.0) |
Provides maths functions with consistent function signatures across supported precisions.