Lines Matching +refs:y +refs:end

58         : start (startX, startY), end (endX, endY)  in Line()
64 : start (startPoint), end (endPoint) in Line()
79 inline ValueType getStartY() const noexcept { return start.y; } in getStartY()
82 inline ValueType getEndX() const noexcept { return end.x; } in getEndX()
85 inline ValueType getEndY() const noexcept { return end.y; } in getEndY()
91 inline Point<ValueType> getEnd() const noexcept { return end; } in getEnd()
97 …void setEnd (ValueType newEndX, ValueType newEndY) noexcept { end.setXY (newEndX, newE… in setEnd()
103 void setEnd (const Point<ValueType> newEnd) noexcept { end = newEnd; } in setEnd()
106 … Line reversed() const noexcept { return { end, start }; } in reversed()
112 end.applyTransform (transform); in applyTransform()
117 …tLength() const noexcept { return start.getDistanceFrom (end); } in getLength()
120 …Squared() const noexcept { return start.getDistanceSquaredFrom (end); } in getLengthSquared()
123 …bool isVertical() const noexcept { return start.x == end.x;… in isVertical()
126 …ool isHorizontal() const noexcept { return start.y == end.y; } in isHorizontal()
133 …nt<ValueType>::FloatType getAngle() const noexcept { return start.getAngleToPoint (end); } in getAngle()
147 …() const noexcept { return { start.toFloat(), end.toFloat() }; } in toFloat()
150 …() const noexcept { return { start.toDouble(), end.toDouble() }; } in toDouble()
154 …er) const noexcept { return start == other.start && end == other.end; }
157 …er) const noexcept { return start != other.start || end != other.end; }
168 findIntersection (start, end, line.start, line.end, p); in getIntersection()
186 return findIntersection (start, end, line.start, line.end, intersection); in intersects()
193 return findIntersection (start, end, other.start, other.end, ignored); in intersects()
206 return start + (end - start) * (distanceFromStart / getLength()); in getPointAlongLine()
225 auto delta = end - start; in getPointAlongLine()
227 (double) delta.y); in getPointAlongLine()
231 …return { start.x + static_cast<ValueType> ((delta.x * distanceFromStart - delta.y * perpendicularD… in getPointAlongLine()
232 …start.y + static_cast<ValueType> ((delta.y * distanceFromStart + delta.x * perpendicularDistance) … in getPointAlongLine()
247 return start + (end - start) * proportionOfLength; in getPointAlongLineProportionally()
264 auto delta = end - start; in getDistanceFromPoint()
265 auto length = delta.x * delta.x + delta.y * delta.y; in getDistanceFromPoint()
270 + (targetPoint.y - start.y) * delta.y) / (double) length; in getDistanceFromPoint()
280 auto fromEnd = targetPoint.getDistanceFrom (end); in getDistanceFromPoint()
288 pointOnLine = end; in getDistanceFromPoint()
302 auto delta = end - start; in findNearestProportionalPositionTo()
303 auto length = delta.x * delta.x + delta.y * delta.y; in findNearestProportionalPositionTo()
308 … + (point.y - start.y) * delta.y) / length))); in findNearestProportionalPositionTo()
327 return start.x != end.x in isPointAbove()
328 … && point.y < ((end.y - start.y) * (point.x - start.x)) / (end.x - start.x) + start.y; in isPointAbove()
339 return { getPointAlongLine (jmin (distanceToShortenBy, getLength())), end }; in withShortenedStart()
355 Point<ValueType> start, end;
371 auto divisor = d1.x * d2.y - d2.x * d1.y; in findIntersection()
377 if (d1.y == 0 && d2.y != 0) in findIntersection()
379 auto along = (p1.y - p3.y) / d2.y; in findIntersection()
384 if (d2.y == 0 && d1.y != 0) in findIntersection()
386 auto along = (p3.y - p1.y) / d1.y; in findIntersection()
394 intersection = p1.withY (p3.y + along * d2.y); in findIntersection()
401 intersection = p3.withY (p1.y + along * d1.y); in findIntersection()
410 auto along1 = ((p1.y - p3.y) * d2.x - (p1.x - p3.x) * d2.y) / divisor; in findIntersection()
416 auto along2 = ((p1.y - p3.y) * d1.x - (p1.x - p3.x) * d1.y) / divisor; in findIntersection()