Exemplo n.º 1
0
 public CMAngle(int id, CMPoint start, CMPoint end1, CMPoint end2, int?angle = null) : base(start.Owner, id)
 {
     Point      = start;
     Line1      = start.GetCommonLine(end1);
     Line2      = start.GetCommonLine(end2);
     this.angle = angle;
     if (Line1.DetectDir(start, end1) > 1)
     {
         Dir = (Line2.DetectDir(start, end2) > 1 ? AngleDir.FrontFront : AngleDir.FrontBack);
     }
     else
     {
         Dir = (Line2.DetectDir(start, end2) > 1 ? AngleDir.BackFront : AngleDir.BackBack);
     }
 }