Learn about Loyc.Math
Articles
Notable math types
MathEx
Math128
- Fixed-point types:
FPI8
(int
with 8 fraction bits),FPI16
(int
with 16 fraction bits)FPL32
(long
with 32 fraction bits) Maths<T>
,MathI
,MathD
, etc.: see “Arithmetic in generic code”Range<T>
: supports the EC# range operatorsa..b
anda...b
Notable geometry types
Point<T>
andVector<T>
Point3<T>
andVector<T>
BoundingBox<T>
- Classes that contain extension methods for each of the above (e.g. optimized for
int
ordouble
)
Interfaces
Loyc.Essentials defines most of the interfaces implemented by Loyc.Math, such as IPoint<T>
, IRectangle<T>
and IMath<T>
. This way, independent implementations of those interfaces can exist that do not reference Loyc.Math.