1 using System.Collections.Generic;
26 intersectionPoint3D.
Z = line2.
Alpha * intersectionPoint3D.
X + line2.
Beta;
27 return intersectionPoint3D;
41 alpha = (point2.
Z - point1.
Z) / (point2.
X - point1.
X);
42 beta = point1.
Z - alpha * point1.
X;
60 $
"Image_{name}_{(configuration.Motor.MicroStepsEnabled ? "MS
" : "NS
")}{(configuration.Motor.MicroStepsEnabled ? actualSteps : actualSteps*16)}.png";
61 string filePath = Path.Combine(imageFolder, file);
72 public static IEnumerable<T>
Descendants<T>(
this Control control) where T :
class
75 foreach (Control child
in control.Controls)
77 T childOfT = child as T;
80 yield
return childOfT;
83 if (!child.HasChildren)
87 yield
return descendant;
static ColorPoint3D Intersection(this Line line1, Line line2)
Intersections between line 1 and the specified line2.
double Z
Gets or sets the z.
static void SaveImage(this Image image, string imageFolder, string name, int actualSteps, Information configuration)
Saves the image.
static IEnumerable< T > Descendants< T >(this Control control)
Descendantses the specified control.
double X
Gets or sets the x.
static void ChevronFromPoints(this ColorPoint3D point1, ColorPoint3D point2, out double alpha, out double beta)
Chevrons from points.
double Beta
Gets or sets the beta chevron.
bool SaveImages
Gets or sets a value indicating whether [save images].
double Alpha
Gets or sets the alpha chevron.