Extension methods
More...
Extension methods
Definition at line 12 of file Extensions.cs.
static void SharedObjects.Extensions.ChevronFromPoints |
( |
this ColorPoint3D |
point1, |
|
|
ColorPoint3D |
point2, |
|
|
out double |
alpha, |
|
|
out double |
beta |
|
) |
| |
|
static |
Chevrons from points.
- Parameters
-
point1 | The point1. |
point2 | The point2. |
alpha | The alpha. |
beta | The beta. |
Definition at line 39 of file Extensions.cs.
41 alpha = (point2.Z - point1.Z) / (point2.X - point1.X);
42 beta = point1.Z - alpha * point1.X;
static IEnumerable<T> SharedObjects.Extensions.Descendants< T > |
( |
this Control |
control | ) |
|
|
static |
Descendantses the specified control.
- Template Parameters
-
- Parameters
-
- Returns
Definition at line 72 of file Extensions.cs.
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 IEnumerable< T > Descendants< T >(this Control control)
Descendantses the specified control.
Intersections between line 1 and the specified line2.
- Parameters
-
line1 | The line1. |
line2 | The line2. |
- Returns
Definition at line 22 of file Extensions.cs.
25 ColorPoint3D intersectionPoint3D =
new ColorPoint3D((line2.Beta - line1.Beta)/(line1.Alpha - line2.Alpha), 0, 0);
26 intersectionPoint3D.Z = line2.Alpha * intersectionPoint3D.X + line2.Beta;
27 return intersectionPoint3D;
static void SharedObjects.Extensions.SaveImage |
( |
this Image |
image, |
|
|
string |
imageFolder, |
|
|
string |
name, |
|
|
int |
actualSteps, |
|
|
Information |
configuration |
|
) |
| |
|
static |
Saves the image.
- Parameters
-
image | The image. |
imageFolder | The image folder. |
name | The name. |
actualSteps | The actual steps. |
configuration | The configuration. |
Definition at line 55 of file Extensions.cs.
60 $
"Image_{name}_{(configuration.Motor.MicroStepsEnabled ? "MS
" : "NS
")}{(configuration.Motor.MicroStepsEnabled ? actualSteps : actualSteps*16)}.png";
61 string filePath = Path.Combine(imageFolder, file);
bool SaveImages
Gets or sets a value indicating whether [save images].
The documentation for this class was generated from the following file:
- C:/Entwicklung/Simple3DScan/Simple3DScan/SharedObjects/Extensions.cs