mirror of https://github.com/ogoun/Zero.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
622 B
27 lines
622 B
using ZeroLevel.Services.Serialization;
|
|
|
|
namespace ZeroLevel.NN.Models
|
|
{
|
|
public class FacePoint
|
|
: IBinarySerializable
|
|
{
|
|
public float X { get; set; }
|
|
public float Y { get; set; }
|
|
|
|
public FacePoint() { }
|
|
public FacePoint(float x, float y) { X = x; Y = y; }
|
|
|
|
public void Serialize(IBinaryWriter writer)
|
|
{
|
|
writer.WriteFloat(this.X);
|
|
writer.WriteFloat(this.Y);
|
|
}
|
|
|
|
public void Deserialize(IBinaryReader reader)
|
|
{
|
|
this.X = reader.ReadFloat();
|
|
this.Y = reader.ReadFloat();
|
|
}
|
|
}
|
|
}
|