Class to store edges in graph meaming all lines and points
More...
|
bool | IsSharp (Point point1, Point point2, Point point3) |
| Function to detect, whether consectuive points point1 , point2 , point3 are at angle less then cca 30° More...
|
|
void | CreateLinesFromPoints () |
| Function to connect points to create line segment between them. More...
|
|
bool | IsShortEnough (Point point1, Point point2, Point point3) |
| This function is called by Shorten to shorten only small enough lines More...
|
|
Class to store edges in graph meaming all lines and points
◆ Edge() [1/2]
VizualizerWPF.Edge.Edge |
( |
| ) |
|
◆ Edge() [2/2]
VizualizerWPF.Edge.Edge |
( |
List< Point > |
points, |
|
|
List< Line > |
lines |
|
) |
| |
◆ CreateLinesFromPoints()
void VizualizerWPF.Edge.CreateLinesFromPoints |
( |
| ) |
|
|
private |
Function to connect points to create line segment between them.
◆ IsSharp()
bool VizualizerWPF.Edge.IsSharp |
( |
Point |
point1, |
|
|
Point |
point2, |
|
|
Point |
point3 |
|
) |
| |
|
private |
Function to detect, whether consectuive points point1
, point2
, point3
are at angle less then cca 30°
- Parameters
-
- Returns
◆ IsShortEnough()
bool VizualizerWPF.Edge.IsShortEnough |
( |
Point |
point1, |
|
|
Point |
point2, |
|
|
Point |
point3 |
|
) |
| |
|
private |
This function is called by Shorten
to shorten only small enough lines
- Parameters
-
- Returns
◆ Shorten()
Function to go through the Edge and shorten if it is wanted.
- Parameters
-
◆ kEdge
int VizualizerWPF.Edge.kEdge = 0 |
◆ lines
List<Line> VizualizerWPF.Edge.lines |
◆ points
List<Point> VizualizerWPF.Edge.points |
◆ smallestCosOfAngle
double VizualizerWPF.Edge.smallestCosOfAngle = 0.8 |
|
static |
The documentation for this class was generated from the following file: