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)); } } }