Lines Matching defs:cross

710                                         Point& cross)
732 cross.x = static_cast<int16_t>(right / left);
738 cross.y = static_cast<int16_t>(right / left);
739 if ((cross.x >= MATH_MIN(p1.x, p2.x)) && (cross.x <= MATH_MAX(p1.x, p2.x)) &&
740 (cross.x >= MATH_MIN(p3.x, p4.x)) && (cross.x <= MATH_MAX(p3.x, p4.x))) {
752 void UIChartPolyline::FindCrossPoints(const ChartLine& line, const ChartLine& polyLine, CrossPointSet& cross)
754 if (GetLineCrossPoint(line.start, line.end, polyLine.start, polyLine.end, cross.nextFirst)) {
756 if (!cross.firstFind) {
758 cross.first = cross.nextFirst;
759 cross.firstFind = false;
761 } else if (!cross.secondFind) {
762 if ((cross.first.x != cross.nextFirst.x) || (cross.first.y != cross.nextFirst.y)) {
763 cross.second = cross.nextFirst;
764 cross.secondFind = true;
768 cross.firstFind = true;
773 if (!cross.firstFind) {
776 cross.first = cross.nextFirst;
777 cross.firstFind = true;
779 } else if (!cross.secondFind) {
780 /* second corss can't be same with first cross. */
781 if ((cross.first.x != cross.nextFirst.x) || (cross.first.y != cross.nextFirst.y)) {
782 cross.second = cross.nextFirst;
783 cross.secondFind = true;
788 cross.firstFind = false;
805 CrossPointSet cross = {{0}};
815 cross.first.x = limitPoints.start.x;
816 cross.first.y = enableReverse_ ? (y - startY) : (startY - y);
817 cross.firstFind = true;
828 cross.firstFind = false;
829 cross.secondFind = false;
836 FindCrossPoints(linePoints, polyLine, cross);
837 SetDrawLineCross(gfxDstBuffer, invalidatedArea, data, cross, baseGfxEngine, startY, mixScale);
839 if (cross.firstFind && !cross.secondFind) {
840 cross.second = {limitPoints.end.x, y};
841 cross.first.y = y;
842 baseGfxEngine->DrawLine(gfxDstBuffer, cross.first, cross.second, invalidatedArea, 1, data->GetFillColor(),
850 CrossPointSet& cross,
855 if (cross.firstFind && cross.secondFind) {
856 cross.first.y = enableReverse_ ? (cross.first.y + startY) : (startY - cross.first.y);
857 cross.second.y = enableReverse_ ? (cross.second.y + startY) : (startY - cross.second.y);
858 baseGfxEngine->DrawLine(gfxDstBuffer, cross.first, cross.second, invalidatedArea, 1, data->GetFillColor(),
860 cross.firstFind = false;
861 cross.secondFind = false;