asmrobot
2019-11-21 589ed88a5924a7494e21b95b6bbff5e46ff49ddd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
namespace RichCreator.Utility.Structs
{
    /// <summary>
    /// 有目标的多边形
    /// </summary>
    public struct ZTTargetPolygon : IEquatable<ZTTargetPolygon>
    {
        public ZTTargetPolygon(ZTPolygon polygon,ZTPoint target)
        {
            this.Polygon = polygon;
            this.Target = target;
        }
 
        /// <summary>
        /// 多边形
        /// </summary>
        public ZTPolygon Polygon;
 
        /// <summary>
        /// 目标点
        /// </summary>
        public ZTPoint Target;
 
 
        public bool Equals(ZTTargetPolygon other)
        {
            if (this.Polygon.Equals(other.Polygon) && this.Target.Equals(other.Target))
            {
                return true;
            }
            return false;
        }
    }
}