using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace RichCreator.Utility.Structs
{
///
/// 有目标的多边形
///
public struct ZTTargetPolygon : IEquatable
{
public ZTTargetPolygon(ZTPolygon polygon,ZTPoint target)
{
this.Polygon = polygon;
this.Target = target;
}
///
/// 多边形
///
public ZTPolygon Polygon;
///
/// 目标点
///
public ZTPoint Target;
public bool Equals(ZTTargetPolygon other)
{
if (this.Polygon.Equals(other.Polygon) && this.Target.Equals(other.Target))
{
return true;
}
return false;
}
}
}