mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-11-26 22:48:34 +01:00
15 lines
No EOL
435 B
C#
15 lines
No EOL
435 B
C#
using MonoGame.Extended;
|
|
|
|
namespace MLEM.Extended.Extensions {
|
|
public static class NumberExtensions {
|
|
|
|
public static RectangleF ToExtended(this Misc.RectangleF rect) {
|
|
return new RectangleF(rect.X, rect.Y, rect.Width, rect.Height);
|
|
}
|
|
|
|
public static Misc.RectangleF ToMlem(this RectangleF rect) {
|
|
return new Misc.RectangleF(rect.X, rect.Y, rect.Width, rect.Height);
|
|
}
|
|
|
|
}
|
|
} |