Lines Matching refs:end_x
232 static void _UpdateLineEndPoints(CFX_FloatRect& rect, FX_FLOAT start_x, FX_FLOAT start_y, FX_FLOAT end_x, FX_FLOAT end_y,
235 if (start_x == end_x) {
237 rect.UpdateRect(end_x + hw, end_y + hw);
238 rect.UpdateRect(end_x - hw, end_y - hw);
247 rect.UpdateRect(end_x + hw, point_y);
248 rect.UpdateRect(end_x - hw, point_y);
252 if (end_x < start_x) {
253 point_x = end_x - hw;
255 point_x = end_x + hw;
261 FX_FLOAT dx = end_x - start_x;
264 FX_FLOAT mx = end_x + hw * dx / ll;
272 FX_FLOAT middle_x, FX_FLOAT middle_y, FX_FLOAT end_x, FX_FLOAT end_y,
277 FX_BOOL bEndVert = FXSYS_fabs(middle_x - end_x) < 1.0f / 20;
292 end_k = FXSYS_Div(end_y - middle_y, end_x - middle_x);
294 end_len = FXSYS_sqrt2(end_x - middle_x, end_y - middle_y);
295 end_dc = (FX_FLOAT)FXSYS_fabs(FXSYS_MulDiv(half_width, end_len, end_x - middle_x));
299 if (end_x < start_x) {
314 FX_FLOAT outside_x = end_x;
315 if (start_x < end_x) {
321 if (end_y < FXSYS_Mul(start_k, end_x) + start_c) {
331 int end_dir = end_x > middle_x ? 1 : -1;
333 _UpdateLineEndPoints(rect, middle_x, middle_y, end_x, end_y, half_width);
340 if (end_y < FXSYS_Mul(start_k, end_x) + start_c) {
386 FX_FLOAT end_x = m_pPoints[iEndPoint].m_PointX;
391 _UpdateLineJoinPoints(rect, start_x, start_y, middle_x, middle_y, end_x, end_y, half_width, miter_limit);
393 _UpdateLineEndPoints(rect, start_x, start_y, end_x, end_y, half_width);