{
return new System.Drawing.Point((int)p.X, (int)p.Y);
}
- public static implicit operator SharpDX.Vector2(Point p)
+ public static implicit operator SharpDX.Mathematics.Interop.RawVector2(Point p)
{
- return new SharpDX.Vector2((float)p.X, (float)p.Y);
+ return new SharpDX.Mathematics.Interop.RawVector2((float)p.X, (float)p.Y);
}
#endif
#if WPF
{
return new System.Windows.Point(p.X, p.Y);
}
- public static implicit operator SharpDX.Vector2(Point p)
+ public static implicit operator SharpDX.Mathematics.Interop.RawVector2(Point p)
{
- return new SharpDX.Vector2((float)p.X, (float)p.Y);
+ return new SharpDX.Mathematics.Interop.RawVector2((float)p.X, (float)p.Y);
}
#endif
#if METRO || WINDOWS_UWP
{
return new Windows.Foundation.Point(p.X, p.Y);
}
- public static implicit operator SharpDX.Vector2(Point p)
+ public static implicit operator SharpDX.Mathematics.Interop.RawVector2(Point p)
{
- return new SharpDX.Vector2((float)p.X, (float)p.Y);
+ return new SharpDX.Mathematics.Interop.RawVector2((float)p.X, (float)p.Y);
}
#endif
}
{
return new System.Drawing.Rectangle((int)p.X, (int)p.Y, (int)p.Width, (int)p.Height);
}
- public static implicit operator SharpDX.RectangleF(Rectangle p)
+ public static implicit operator SharpDX.Mathematics.Interop.RawRectangleF(Rectangle p)
{
- return new SharpDX.RectangleF((float)p.X, (float)p.Y, (float)p.Width, (float)p.Height);
+ return new SharpDX.Mathematics.Interop.RawRectangleF((float)p.X, (float)p.Y, (float)p.BottomRight.X, (float)p.BottomRight.Y);
}
#endif
#if WPF
{
return new System.Windows.Rect(p.X, p.Y, p.Width, p.Height);
}
- public static implicit operator SharpDX.RectangleF(Rectangle p)
+ public static implicit operator SharpDX.Mathematics.Interop.RawRectangleF(Rectangle p)
{
- return new SharpDX.RectangleF((float)p.X, (float)p.Y, (float)p.Width, (float)p.Height);
+ return new SharpDX.Mathematics.Interop.RawRectangleF((float)p.X, (float)p.Y, (float)p.BottomRight.X, (float)p.BottomRight.Y);
}
#endif
#if METRO || WINDOWS_UWP
return new Windows.Foundation.Rect(p.X, p.Y, p.Width, p.Height);
}
- public static implicit operator SharpDX.RectangleF(Rectangle p)
+ public static implicit operator SharpDX.Mathematics.Interop.RawRectangleF(Rectangle p)
{
- return new SharpDX.RectangleF((float)p.X, (float)p.Y, (float)p.Width, (float)p.Height);
+ return new SharpDX.Mathematics.Interop.RawRectangleF((float)p.X, (float)p.Y, (float)p.BottomRight.X, (float)p.BottomRight.Y);
}
#endif
}