Lines Matching refs:y
186 pointArray_[index].y = point.y; in ModifyPoint()
187 if (point.y > peakData_) { in ModifyPoint()
192 peakData_ = point.y; in ModifyPoint()
193 } else if (point.y < valleyData_) { in ModifyPoint()
198 valleyData_ = point.y; in ModifyPoint()
217 chart_->GetYAxis().TranslateToPixel(point.y); in GetPoint()
283 peakData_ = pointArray_[startPos].y; in UpdatePeakAndValley()
284 valleyData_ = pointArray_[startPos].y; in UpdatePeakAndValley()
288 if (pointArray_[i].y > peakData_) { in UpdatePeakAndValley()
294 peakData_ = pointArray_[i].y; in UpdatePeakAndValley()
297 if (pointArray_[i].y < valleyData_) { in UpdatePeakAndValley()
303 valleyData_ = pointArray_[i].y; in UpdatePeakAndValley()
469 if (current.y == xStart.y) { in DrawDataSerials()
516 for (int16_t y = 0; y < height; y++) { in ReMeasure() local
517 mixData_[y] = static_cast<uint8_t>(y * opa / height + minOpa_); in ReMeasure()
566 …if (((end.y - start.y <= 0) && (current.y - end.y <= 0)) || ((end.y - start.y >= 0) && (current.y … in Smooth()
567 …= (current.x == start.x) ? QUARTER_IN_DEGREE : FastAtan2(current.x - start.x, current.y - start.y); in Smooth()
573 …Slope = (current.x == end.x) ? QUARTER_IN_DEGREE : FastAtan2(current.x - end.x, current.y - end.y); in Smooth()
591 …_t preSlope = (start.x == end.x) ? QUARTER_IN_DEGREE : FastAtan2(end.x - start.x, end.y - start.y); in GetDataBySmooth()
625 …_t preSlope = (start.x == end.x) ? QUARTER_IN_DEGREE : FastAtan2(end.x - start.x, end.y - start.y); in DrawSmoothPolyLine()
635 rect.SetTop(MATH_MIN(start.y, end.y) - style_->lineWidth_); in DrawSmoothPolyLine()
636 rect.SetBottom(MATH_MAX(start.y, end.y) + style_->lineWidth_); in DrawSmoothPolyLine()
689 rect.SetTop(MATH_MIN(start.y, end.y) - style_->lineWidth_); in DrawPolyLine()
690 rect.SetBottom(MATH_MAX(start.y, end.y) + style_->lineWidth_); in DrawPolyLine()
714 …(MATH_MIN(p1.y, p2.y) <= MATH_MAX(p3.y, p4.y)) && (MATH_MIN(p3.y, p4.y) <= MATH_MAX(p1.y, p2.y))) { in GetLineCrossPoint()
716 if ((p4.y - p3.y) * (p2.x - p1.x) - (p4.x - p3.x) * (p2.y - p1.y) != 0) { in GetLineCrossPoint()
721 int64_t a = p1.y - p2.y; in GetLineCrossPoint()
723 int64_t c = p2.x * p1.y - p1.x * p2.y; in GetLineCrossPoint()
724 int64_t d = p3.y - p4.y; in GetLineCrossPoint()
726 int64_t f = p4.x * p3.y - p3.x * p4.y; in GetLineCrossPoint()
738 cross.y = static_cast<int16_t>(right / left); in GetLineCrossPoint()
746 …(MATH_MIN(p1.y, p2.y) >= MATH_MAX(p3.y, p4.y)) && (MATH_MIN(p3.y, p4.y) <= MATH_MAX(p1.y, p2.y))) { in GetLineCrossPoint()
755 …if (enableReverse_ && (MATH_MIN(line.start.y, line.end.y) >= MATH_MAX(polyLine.start.y, polyLine.e… in FindCrossPoints()
757 if (polyLine.start.y < polyLine.end.y) { in FindCrossPoints()
762 if ((cross.first.x != cross.nextFirst.x) || (cross.first.y != cross.nextFirst.y)) { in FindCrossPoints()
767 if (polyLine.start.y > polyLine.end.y) { in FindCrossPoints()
775 if (polyLine.start.y < polyLine.end.y) { in FindCrossPoints()
781 if ((cross.first.x != cross.nextFirst.x) || (cross.first.y != cross.nextFirst.y)) { in FindCrossPoints()
787 if (polyLine.start.y > polyLine.end.y) { in FindCrossPoints()
808 int16_t y = enableReverse_ ? (linePoints.start.y + startY) : (startY - linePoints.start.y); in DrawGradientColor() local
809 int16_t mixScale = !enableReverse_ ? (currentRect.GetBottom() - y) : (y - currentRect.GetTop()); in DrawGradientColor()
813 bool onVerticalLine = enableReverse_ ? (y <= limitPoints.start.y) : (y >= limitPoints.start.y); in DrawGradientColor()
816 cross.first.y = enableReverse_ ? (y - startY) : (startY - y); in DrawGradientColor()
825 if (start.y == end.y) { in DrawGradientColor()
826 int16_t tmpY = enableReverse_ ? (start.y + startY) : (startY - start.y); in DrawGradientColor()
827 if (tmpY == linePoints.start.y) { in DrawGradientColor()
833 start.y = enableReverse_ ? (start.y - startY) : (startY - start.y); in DrawGradientColor()
834 end.y = enableReverse_ ? (end.y - startY) : (startY - end.y); in DrawGradientColor()
840 cross.second = {limitPoints.end.x, y}; in DrawGradientColor()
841 cross.first.y = y; in DrawGradientColor()
856 cross.first.y = enableReverse_ ? (cross.first.y + startY) : (startY - cross.first.y); in SetDrawLineCross()
857 cross.second.y = enableReverse_ ? (cross.second.y + startY) : (startY - cross.second.y); in SetDrawLineCross()
869 int16_t& y, in CalcVerticalInfo() argument
873 y = start; in CalcVerticalInfo()
876 y = bottom; in CalcVerticalInfo()
879 y = bottom; in CalcVerticalInfo()
892 yStart.y = enableReverse_ ? (yStart.y + gradientBottom_) : (yStart.y - gradientBottom_); in GradientColor()
898 int16_t startY = enableReverse_ ? topY : yStart.y; in GradientColor()
899 int16_t endY = enableReverse_ ? yStart.y : topY; in GradientColor()
904 int16_t y = 0; in GradientColor() local
906 CalcVerticalInfo(top, bottom, startY, endY, y, yHeight); in GradientColor()
916 while (y >= yHeight) { in GradientColor()
917 linePoints.start.y = enableReverse_ ? (y - endY) : (startY - y); in GradientColor()
918 linePoints.end.y = linePoints.start.y; in GradientColor()
919 if (y <= valleyY) { in GradientColor()
923 int16_t mixScale = enableReverse_ ? (linePoints.start.y + endY - currentRect.GetTop()) : in GradientColor()
924 … (currentRect.GetBottom() - (startY - linePoints.start.y)); in GradientColor()
926 y--; in GradientColor()
929 Point start = {limitPoints.start.x, y}; in GradientColor()
930 Point end = {limitPoints.end.x, y}; in GradientColor()
934 y--; in GradientColor()