VizualizerWPF
|
Static Public Member Functions | |
static void | Init (MainWindow window) |
static ? Point | LineAndHalfLine (Line line1, HalfLineWithCoeffients halfLine) |
Function to detect whether Line and HalfLine intersect. More... | |
static Point | TwoLines (Line line1, Line line2) |
Detect intersection of two line segment More... | |
static Point | TwoLinesIntersectNotAtTheEnd (Line line1, Line line2) |
Detect if two lines intersect except of their end points and return the intersection More... | |
static bool | CheckIfTwoLinesIntersectNotAtTheEnd (Line line1, Line line2) |
Detect if two lines intersect except of their end points More... | |
static bool | IntersectsSomeLine (Line line) |
Function to detect whether conrete line intersect any of the lines of the window More... | |
static bool | LineAndEllipseAtEnd (Line line, Ellipse ellipse) |
Function to detect if end of the line is in given ellipse (circle) More... | |
static bool | CenterOfEllipseOnLine (Line line, Ellipse ellipse) |
Detect if center of ellipse lies on given line More... | |
static bool | CenterOfVertexOnLine (Line line, Vertex v) |
Function to detect if vertex v lines on line . More... | |
static bool | CenterOnLine (Line line, Point center) |
Detects if a point center lies on line line More... | |
static bool | CenterInsideEllipse (Point point, Ellipse ellipse) |
Detect if point is inside ellipse (circle) More... | |
static bool | LineAndEllipse (Line line, Ellipse ellipse) |
Detect if ellipse and line intersects More... | |
static bool | TwoPaths (Path path1, Path path2) |
General collision detection for further generalization and bezier lines More... | |
static double | GetDistance (Line line) |
static IEnumerable< HalfLineWithCoeffients > | GetRaysGoingFromPoint (Point point) |
Create many of rays going from point . More... | |
static IEnumerable< HalfLineWithCoeffients > | GetPerpendicularsToAlmostMids (Line line) |
Iterator for getting many perpendicular lines to line More... | |
static int | GetOrientation (Line line, List< Line > lines, Point point) |
Function to detect the orieantion of the triangle formed by lines and line , where point determines the reference face More... | |
static Point | ChooseOppositeOne (Edge edge, Point point) |
Function to get opposite end of edge to point . More... | |
static Line | ChooseTheLineBy (Vertex v, Edge e) |
Function to get line of Edge e incident to v . More... | |
static Line | OrientLineProperly (Vertex v, Line l) |
Function to orient line l so that v is first point. More... | |
static IEnumerable< Line > | GetEdges (Vertex v, GraphCoordinates graphCoordinates) |
Iterator to get all the line of the edges incident to v . More... | |
static int | CompareLinesByAngle (Vector v1, Vector v2) |
static double | Determinant (Vector a, Vector b) |
static bool | CheckIfEdgeIsInTriangle (Vertex from, Vertex to, Vertex third, Vertex firstEdgeVertex, Vertex secondEdgeVertex) |
Static Public Attributes | |
static | Line |
Function to add lines of triangle together except for the one to which we consider perpendicular rays More... | |
Static Private Member Functions | |
static Point | GetAlmostMid (Line line, int a, int b) |
return point on line in ratio a to b . More... | |
static LineWithCoeffients | GetLineWithCoefficients (Line line) |
Convert line into LineWithCoefficients More... | |
static HalfLineWithCoeffients | GetPerpendicularToAlmostMid (Line line, int a, int b) |
static List< Line > | PutLinesTogether (Edge e1, Edge e2, Edge e3) |
Static Private Attributes | |
static MainWindow | window |
Class to detect many types of collision in 2D More... | |
static bool | debug = false |
static readonly double | epsilon = 0.00001 |
Error rate More... | |
static | HalfLineWithCoeffients |
Create a perpendicular line to line t at the point which has ration a to b . More... | |
|
static |
Detect if point
is inside ellipse
(circle)
point | |
ellipse |
|
static |
Detect if center of ellipse
lies on given line
line | |
ellipse |
Function to detect if vertex v
lines on line
.
line | |
v |
|
static |
Detects if a point center
lies on line line
line | |
center |
|
static |
|
static |
Detect if two lines intersect except of their end points
line1 | |
line2 |
|
static |
Function to get opposite end of edge
to point
.
edge | |
point |
|
static |
|
static |
|
staticprivate |
return point on line
in ratio a
to b
.
line | |
a | |
b |
|
static |
|
static |
Iterator to get all the line of the edges incident to v
.
v | |
graphCoordinates |
|
staticprivate |
Convert line
into LineWithCoefficients
line |
|
static |
Function to detect the orieantion of the triangle formed by lines
and line
, where point
determines the reference face
line | |
lines | |
point |
|
static |
Iterator for getting many perpendicular lines to line
line |
|
staticprivate |
|
static |
Create many of rays going from point
.
point |
|
static |
|
static |
Function to detect whether conrete line
intersect any of the lines of the window
line |
|
static |
Detect if ellipse
and line
intersects
line | |
ellipse |
|
static |
Function to detect if end of the line
is in given ellipse
(circle)
line | |
ellipse |
|
static |
Function to detect whether Line and HalfLine intersect.
line1 | |
halfLine |
Function to orient line l
so that v
is first point.
v | |
l |
|
staticprivate |
Detect intersection of two line segment
line1 | |
line2 |
|
static |
Detect if two lines intersect except of their end points and return the intersection
line1 | |
line2 |
|
static |
General collision detection for further generalization and bezier lines
path1 | first object |
path2 | second object |
|
staticprivate |
|
staticprivate |
Error rate
|
staticprivate |
Create a perpendicular line to line
t at the point which has ration a
to b
.
line | |
a | |
b |
|
static |
Function to add lines of triangle together except for the one to which we consider perpendicular rays
e1 | |
e2 | |
e3 |
|
staticprivate |
Class to detect many types of collision in 2D