comparison Core/Images/ImageProcessing.h @ 3565:2999a6e9456b

ImageProcessing::ImagePoint::GetDistanceToLine
author Alain Mazy <alain@mazy.be>
date Thu, 07 Nov 2019 17:02:19 +0100
parents 0f5f9a5eed25
children 4066998150ef
comparison
equal deleted inserted replaced
3562:f47149cdc048 3565:2999a6e9456b
70 x_ = std::max(minX, std::min(maxX, x_)); 70 x_ = std::max(minX, std::min(maxX, x_));
71 y_ = std::max(minY, std::min(maxY, y_)); 71 y_ = std::max(minY, std::min(maxY, y_));
72 } 72 }
73 73
74 double GetDistanceTo(const ImagePoint& other) const; 74 double GetDistanceTo(const ImagePoint& other) const;
75
76 double GetDistanceToLine(double a, double b, double c) const; // where ax + by + c = 0 is the equation of the line
75 }; 77 };
76 78
77 void Copy(ImageAccessor& target, 79 void Copy(ImageAccessor& target,
78 const ImageAccessor& source); 80 const ImageAccessor& source);
79 81