Diplo
 All Classes Namespaces Functions Variables Properties
Static Public Member Functions | List of all members
Diplo.Graph.Geometry.LineSegment Class Reference

Trieda poskytujúca základne operácie s úsečkou / cestou More...

Static Public Member Functions

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...
 

Detailed Description

Trieda poskytujúca základne operácie s úsečkou / cestou

Member Function Documentation

static int Diplo.Graph.Geometry.LineSegment.ComputeDirection ( double  xi,
double  yi,
double  xj,
double  yj,
double  xk,
double  yk 
)
static

Parameters
xi
yi
xj
yj
xk
yk
Returns
static bool Diplo.Graph.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
x1
y1
x2
y2
x3
y3
x4
y4
Returns
static bool Diplo.Graph.Geometry.LineSegment.IsOnSegment ( double  xi,
double  yi,
double  xj,
double  yj,
double  xk,
double  yk 
)
static

Parameters
xi
yi
xj
yj
xk
yk
Returns
static Point Diplo.Graph.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
p1Bod 1 usecky
p2Bod 2 usecky
distancevzdialenost od bodu usecky, v ktorej bude bod
Returns
static double Diplo.Graph.Geometry.LineSegment.pathLength ( Stack< Point >  path)
static

Vypocita dlzku cesty

Parameters
pathCesta tvorena bodmi (System.Drawing.Point)
Returns

The documentation for this class was generated from the following file: