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; }
public static RelativePoint LineIntersection(RelativeLine ab, RelativeLine cd) { return(LineIntersection(ab.A, ab.B, cd.A, cd.B)); }
public static bool IsParallel(RelativeLine ab, RelativeLine cd) { return(IsParallel(ab.A, ab.B, cd.A, cd.B)); }
public static RelativePoint GetPoint(RelativeLine line, double offSet) { return(GetPoint(line.A, line.B, offSet)); }
public static double GetPointY(RelativeLine line, double xOffSet) { return(line.A.Norm.Y + ((line.B.Norm.Y - line.A.Norm.Y) * xOffSet)); }
public static double GetPointX(RelativeLine line, double yOffSet) { return(line.A.Norm.X + ((line.B.Norm.X - line.A.Norm.X) * yOffSet)); }