Lines Matching refs:pt2
35 static float _lineLengthApprox(const Point& pt1, const Point& pt2) in _lineLengthApprox() argument
40 Point diff = {pt2.x - pt1.x, pt2.y - pt1.y}; in _lineLengthApprox()
47 static float _lineLength(const Point& pt1, const Point& pt2) in _lineLength() argument
49 Point diff = {pt2.x - pt1.x, pt2.y - pt1.y}; in _lineLength()
230 return _lineLength(pt1, pt2); in length()
237 auto dx = ((pt2.x - pt1.x) / len) * at; in split()
238 auto dy = ((pt2.y - pt1.y) / len) * at; in split()
240 left.pt2.x = left.pt1.x + dx; in split()
241 left.pt2.y = left.pt1.y + dy; in split()
242 right.pt1 = left.pt2; in split()
243 right.pt2 = pt2; in split()