Пример #1
0
        private void addLineButton_Click(object sender, EventArgs e)
        {
            Line newLine = new RelativeLine {
                Id         = linesList.Items.Count,
                RelativeTo = 0
            };

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