C# Class Strabo.Core.TextDetection.Geometry

Datei anzeigen Open project: usc-isi-i2/strabo-arcstrabo

Public Methods

Method Description
DiffSlope ( double s1, double s2 ) : double
DistancePoint2Line ( double px, double py, double x, double y, double xx, double yy ) : double
DistancePoint2LineSegment ( double px, double py, double x, double y, double xx, double yy ) : double
DistancePoint2Point ( double x1, double y1, double x2, double y2 ) : double
IsPointInBoundingBox ( double x1, double y1, double x2, double y2, double px, double py ) : int
LineSegmentIntersection ( double l1x1, double l1y1, double l1x2, double l1y2, double l2x1, double l2y1, double l2x2, double l2y2 ) : int
NearestPointLine ( double px, double py, double x, double y, double xx, double yy ) : double[]
SidePointOfLine ( double ax, double ay, double bx, double by, double cx, double cy ) : int

Method Details

DiffSlope() public static method

public static DiffSlope ( double s1, double s2 ) : double
s1 double
s2 double
return double

DistancePoint2Line() public static method

public static DistancePoint2Line ( double px, double py, double x, double y, double xx, double yy ) : double
px double
py double
x double
y double
xx double
yy double
return double

DistancePoint2LineSegment() public static method

public static DistancePoint2LineSegment ( double px, double py, double x, double y, double xx, double yy ) : double
px double
py double
x double
y double
xx double
yy double
return double

DistancePoint2Point() public static method

public static DistancePoint2Point ( double x1, double y1, double x2, double y2 ) : double
x1 double
y1 double
x2 double
y2 double
return double

IsPointInBoundingBox() public static method

public static IsPointInBoundingBox ( double x1, double y1, double x2, double y2, double px, double py ) : int
x1 double
y1 double
x2 double
y2 double
px double
py double
return int

LineSegmentIntersection() public static method

public static LineSegmentIntersection ( double l1x1, double l1y1, double l1x2, double l1y2, double l2x1, double l2y1, double l2x2, double l2y2 ) : int
l1x1 double
l1y1 double
l1x2 double
l1y2 double
l2x1 double
l2y1 double
l2x2 double
l2y2 double
return int

NearestPointLine() public static method

public static NearestPointLine ( double px, double py, double x, double y, double xx, double yy ) : double[]
px double
py double
x double
y double
xx double
yy double
return double[]

SidePointOfLine() public static method

public static SidePointOfLine ( double ax, double ay, double bx, double by, double cx, double cy ) : int
ax double
ay double
bx double
by double
cx double
cy double
return int