asmrobot
2019-11-25 2aeab450471cb80b59002da7da80faf251a0c4f4
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
41
42
43
44
45
46
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
namespace RichCreator.Utility.Structs
{
    public class ZTLinePointObj
    {
        public ZTLinePointObj()
        {
 
        }
        private ZTPointObj p1;
        private ZTPointObj p2;
 
 
        public ZTLinePointObj(ZTPointObj p1, ZTPointObj p2)
        {
            this.p1 = p1;
            this.p2 = p2;
        }
 
        public ZTPointObj P1
        {
            get { return p1; }
            set { p1 = value; }
        }
 
        public ZTPointObj P2
        {
            get { return p2; }
            set { p2 = value; }
        }
        public ZTLinePoint To()
        {
            return new ZTLinePoint(this.p1.To(), this.p2.To());
        }
 
        public static ZTLinePointObj From(ZTLinePoint obj)
        {
            return new ZTLinePointObj(ZTPointObj.From(obj.P1), ZTPointObj.From(obj.P2));
        }
    }
}