Trieda poskytujúca základne operácie s úsečkou / cestou
More...
|
static double | pathLength (Stack< Point > path) |
| More...
|
|
static Point | middlePoint (Point p1, Point p2, double distance) |
| More...
|
|
static bool | DoLineSegmentsIntersect (double x1, double y1, double x2, double y2, double x3, double y3, double x4, double y4) |
| More...
|
|
static bool | IsOnSegment (double xi, double yi, double xj, double yj, double xk, double yk) |
| More...
|
|
static int | ComputeDirection (double xi, double yi, double xj, double yj, double xk, double yk) |
| More...
|
|
Trieda poskytujúca základne operácie s úsečkou / cestou
static int Diplo.Libs.Geometry.LineSegment.ComputeDirection |
( |
double |
xi, |
|
|
double |
yi, |
|
|
double |
xj, |
|
|
double |
yj, |
|
|
double |
xk, |
|
|
double |
yk |
|
) |
| |
|
static |
static bool Diplo.Libs.Geometry.LineSegment.DoLineSegmentsIntersect |
( |
double |
x1, |
|
|
double |
y1, |
|
|
double |
x2, |
|
|
double |
y2, |
|
|
double |
x3, |
|
|
double |
y3, |
|
|
double |
x4, |
|
|
double |
y4 |
|
) |
| |
|
static |
Do line segments (x1, y1)–(x2, y2) and (x3, y3)–(x4, y4) intersect?
- Parameters
-
- Returns
static bool Diplo.Libs.Geometry.LineSegment.IsOnSegment |
( |
double |
xi, |
|
|
double |
yi, |
|
|
double |
xj, |
|
|
double |
yj, |
|
|
double |
xk, |
|
|
double |
yk |
|
) |
| |
|
static |
static Point Diplo.Libs.Geometry.LineSegment.middlePoint |
( |
Point |
p1, |
|
|
Point |
p2, |
|
|
double |
distance |
|
) |
| |
|
static |
Medzi dvoma bodmi - na usecke - najde bod, ktory sa sa nachadza urcitu vzdialenost (danu ako parameter) od bodu p1
- Parameters
-
p1 | Bod 1 usecky |
p2 | Bod 2 usecky |
distance | vzdialenost od bodu usecky, v ktorej bude bod |
- Returns
static double Diplo.Libs.Geometry.LineSegment.pathLength |
( |
Stack< Point > |
path | ) |
|
|
static |
Vypocita dlzku cesty
- Parameters
-
path | Cesta tvorena bodmi (System.Drawing.Point) |
- Returns
The documentation for this class was generated from the following file:
- Libs/Geometry/LineSegment.cs