using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CCDCount.MODEL.ShuLiModel
{
    public class BoundingRectangleMdoel
    {
        /// <summary>
        /// 外接矩形全部点
        /// </summary>
        public List<Point> points { get; set; }
        /// <summary>
        /// 外接矩形中心点
        /// </summary>
        public Point CenterPoint { get; set; }
        /// <summary>
        /// 外接矩形高的两个端点
        /// </summary>
        public List<Point> HeightPoints { get; set; }
        /// <summary>
        /// 外接矩形宽的两个端点
        /// </summary>
        public List<Point> WidthPoints { get; set; }
        /// <summary>
        /// 外接矩形宽
        /// </summary>
        public double Width { get; set; }
        /// <summary>
        /// 外接矩形高
        /// </summary>
        public double Height { get; set; }
        /// <summary>
        /// 角度
        /// </summary>
        public double Angle { get; set; }
        /// <summary>
        /// 是否有内凹
        /// </summary>
        public bool hasSignificantConcavity { get; set; }
        /// <summary>
        /// 内凹程度
        /// </summary>
        public double concavityRatio { get; set; }
    }

    public class MaxLengthModel
    {
        public double MaxLength { get; set; }
        public Point Point1 { get; set; }
        public int Point1Index { get; set; }
        public Point Point2 { get; set; }
        public int Point2Index { get; set; }
    }
}
