Lines Matching refs:y
35 if ((p1.x == p2.x) && ((p1.y == p2.y) || (p1.x == p3.x))) { in Draw()
38 if ((p2.x == p3.x) && (p2.y == p3.y)) { in Draw()
41 if (((p1.x == p3.x) || (p1.y == p2.y)) && (p1.y == p3.y)) { in Draw()
48 int16_t lastY = p1.y; in Draw()
50 while (edge1.curPoint.y <= p3.y) { in Draw()
52 if (edge1.curPoint.y == p2.y) { in Draw()
54 if (edge1.dPoint.y == 0) { in Draw()
61 area.SetTop(MATH_MIN(edge1.curPoint.y, edge2.curPoint.y)); in Draw()
62 area.SetBottom(MATH_MAX(edge1.curPoint.y, edge2.curPoint.y)); in Draw()
65 while (edge1.curPoint.y == lastY) { in Draw()
69 while (edge2.curPoint.y == lastY) { in Draw()
73 lastY = edge1.curPoint.y; in Draw()
87 if (p1.y > p2.y) { in SortPoint()
96 if (edge.dPoint.x > edge.dPoint.y) { in StepToNextPointOnEdge()
98 edge.eps += edge.dPoint.y; in StepToNextPointOnEdge()
100 edge.curPoint.y += edge.uPoint.y; in StepToNextPointOnEdge()
104 edge.curPoint.y += edge.uPoint.y; in StepToNextPointOnEdge()
106 if ((edge.eps << 1) >= edge.dPoint.y) { in StepToNextPointOnEdge()
108 edge.eps -= edge.dPoint.y; in StepToNextPointOnEdge()
118 edge.dPoint.y = startP.y - endP.y; in InitEdge()
120 edge.uPoint.y = (edge.dPoint.y < 0) ? 1 : -1; in InitEdge()
123 edge.dPoint.y = MATH_ABS(edge.dPoint.y); in InitEdge()