VizualizerWPF
|
Struct to store vertices
ellipse | Drawing of vertex |
center | Center of vertex |
state | State of vertex |
Implementing IEqualityComparer <Vertex> , IEquatable <Vertex> to index HashSet and Dictionary More...
Public Member Functions | |
Vertex (Ellipse ellipse, Point point, VertexState state) | |
override bool | Equals (object obj) |
override int | GetHashCode () |
GetHashCode by rounding the coordinates to avoid numerical errors More... | |
override string | ToString () |
bool | Equals (Vertex other) |
bool | Equals (Vertex x, Vertex y) |
int | GetHashCode (Vertex obj) |
Static Public Member Functions | |
static bool | Compare (Point a, Point b) |
Compare points in both coordinates and consider the same if there both coordinates are the same except for small error 0.0001 More... | |
static bool | operator== (Vertex a, Vertex b) |
static bool | operator!= (Vertex a, Vertex b) |
Data Fields | |
Ellipse | ellipse |
Point | center |
VertexState | state |
Struct to store vertices
ellipse | Drawing of vertex |
center | Center of vertex |
state | State of vertex |
Implementing IEqualityComparer <Vertex> , IEquatable <Vertex> to index HashSet and Dictionary
VizualizerWPF.Vertex.Vertex | ( | Ellipse | ellipse, |
Point | point, | ||
VertexState | state | ||
) |
|
static |
Compare points in both coordinates and consider the same if there both coordinates are the same except for small error 0.0001
a | |
b |
override bool VizualizerWPF.Vertex.Equals | ( | object | obj | ) |
bool VizualizerWPF.Vertex.Equals | ( | Vertex | other | ) |
override int VizualizerWPF.Vertex.GetHashCode | ( | ) |
GetHashCode by rounding the coordinates to avoid numerical errors
int VizualizerWPF.Vertex.GetHashCode | ( | Vertex | obj | ) |
override string VizualizerWPF.Vertex.ToString | ( | ) |
Point VizualizerWPF.Vertex.center |
Ellipse VizualizerWPF.Vertex.ellipse |
VertexState VizualizerWPF.Vertex.state |