private void addLineButton_Click(object sender, EventArgs e)
        {
            Line newLine = new RelativeLine {
                Id         = linesList.Items.Count,
                RelativeTo = 0
            };

            AddLine(newLine);
        }
 public Violation(RelativeLine line, double distance)
 {
     Line     = line;
     Distance = distance;
 }
Exemple #3
0
 public static RelativePoint LineIntersection(RelativeLine ab, RelativeLine cd)
 {
     return(LineIntersection(ab.A, ab.B, cd.A, cd.B));
 }
Exemple #4
0
 public static bool IsParallel(RelativeLine ab, RelativeLine cd)
 {
     return(IsParallel(ab.A, ab.B, cd.A, cd.B));
 }
Exemple #5
0
 public static RelativePoint GetPoint(RelativeLine line, double offSet)
 {
     return(GetPoint(line.A, line.B, offSet));
 }
Exemple #6
0
 public static double GetPointY(RelativeLine line, double xOffSet)
 {
     return(line.A.Norm.Y + ((line.B.Norm.Y - line.A.Norm.Y) * xOffSet));
 }
Exemple #7
0
 public static double GetPointX(RelativeLine line, double yOffSet)
 {
     return(line.A.Norm.X + ((line.B.Norm.X - line.A.Norm.X) * yOffSet));
 }