19 lines
402 B
C#
19 lines
402 B
C#
using System.Windows;
|
|
using System.Xml.Serialization;
|
|
|
|
namespace Intromat.PersistentModel
|
|
{
|
|
public struct PositionModel
|
|
{
|
|
[XmlAttribute]
|
|
public double X { get; set; }
|
|
|
|
[XmlAttribute]
|
|
public double Y { get; set; }
|
|
|
|
public static implicit operator Point(PositionModel position)
|
|
{
|
|
return new(position.X, position.Y);
|
|
}
|
|
}
|
|
} |