12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- #include "utils.h"
-
- LFRPoint::LFRPoint(/* args */) : x(0.0), y(0.0)
- {
- }
-
- LFRPoint::LFRPoint(double x, double y): x(x), y(y)
- {
- }
-
- LFRPoint::~LFRPoint()
- {
- }
-
- LFRVector::LFRVector(/* args */) : LFRPoint()
- {
- }
-
- LFRVector::LFRVector(double x, double y) : LFRPoint(x, y)
- {
- }
-
- LFRVector::LFRVector(const LFRPoint& pt) : LFRPoint(pt)
- {
-
- }
-
- LFRVector::~LFRVector()
- {
- }
-
- LFRLine::LFRLine(/* args */) : start(), dir()
- {
- }
-
- LFRLine::LFRLine(LFRPoint start, LFRVector dir) : start(start), dir(dir)
- {
- }
-
- LFRLine::LFRLine(LFRPoint start, LFRPoint end) : start(start)
- {
- dir = end - start;
- }
-
- LFRLine::~LFRLine()
- {
- }
-
- VectorOfLines::VectorOfLines()
- {
- }
-
- float VectorOfLines::calcGradient(Point p0, Point p1)
- {
- return (p1.y - p0.y)/(p1.x - p0.x);
- }
-
- float VectorOfLines::calcZeroPoint(cv::Point x, float m)
- {
-
- }
|