diff --git a/MBS.Framework/MBS.Framework.csproj b/MBS.Framework/MBS.Framework.csproj
index 3497cc8..0afa25e 100644
--- a/MBS.Framework/MBS.Framework.csproj
+++ b/MBS.Framework/MBS.Framework.csproj
@@ -120,6 +120,7 @@
+
diff --git a/MBS.Framework/MathExtensions.cs b/MBS.Framework/MathExtensions.cs
new file mode 100644
index 0000000..e511af5
--- /dev/null
+++ b/MBS.Framework/MathExtensions.cs
@@ -0,0 +1,27 @@
+using System;
+namespace MBS.Framework
+{
+ public static class MathExtensions
+ {
+ ///
+ /// Multiplies a floating point value x by the number 2 raised to the exp power.
+ ///
+ /// The ldexp.
+ /// The x coordinate.
+ /// Exp.
+ public static float ldexp(float x, int exp)
+ {
+ return (float)(x * Math.Pow(2, exp));
+ }
+ ///
+ /// Multiplies a floating point value x by the number 2 raised to the exp power.
+ ///
+ /// The ldexp.
+ /// The x coordinate.
+ /// Exp.
+ public static double ldexp(double x, int exp)
+ {
+ return (x * Math.Pow(2, exp));
+ }
+ }
+}