Lines Matching refs:points

293 static INLINE VGboolean is_bezier_line(float (*points)[2], int count)  in is_bezier_line()
295 float dx13 = points[2][0] - points[0][0]; in is_bezier_line()
296 float dy13 = points[2][1] - points[0][1]; in is_bezier_line()
298 float dx12 = points[1][0] - points[0][0]; in is_bezier_line()
299 float dy12 = points[1][1] - points[0][1]; in is_bezier_line()
306 float dx14 = points[3][0] - points[0][0]; in is_bezier_line()
307 float dy14 = points[3][1] - points[0][1]; in is_bezier_line()
340 float points[4][2]; in shift() local
346 points[np][0] = orig->x1; in shift()
347 points[np][1] = orig->y1; in shift()
351 points[np][0] = orig->x2; in shift()
352 points[np][1] = orig->y2; in shift()
357 points[np][0] = orig->x3; in shift()
358 points[np][1] = orig->y3; in shift()
363 points[np][0] = orig->x4; in shift()
364 points[np][1] = orig->y4; in shift()
373 if (np > 2 && is_bezier_line(points, np)) { in shift()
374 float l[4] = { points[0][0], points[0][1], in shift()
375 points[np-1][0], points[np-1][1] }; in shift()
377 if (floatsEqual(points[0][0], points[np-1][0]) && in shift()
378 floatsEqual(points[0][1], points[np-1][1])) in shift()
404 compute_pt_normal(points[0], points[1], prev_normal); in shift()
406 points_shifted[0][0] = points[0][0] + offset * prev_normal[0]; in shift()
407 points_shifted[0][1] = points[0][1] + offset * prev_normal[1]; in shift()
412 compute_pt_normal(points[i], points[i + 1], next_normal); in shift()
421 points_shifted[i][0] = points[i][0] + offset * prev_normal[0]; in shift()
422 points_shifted[i][1] = points[i][1] + offset * prev_normal[1]; in shift()
425 points_shifted[i][0] = points[i][0] + k * normal_sum[0]; in shift()
426 points_shifted[i][1] = points[i][1] + k * normal_sum[1]; in shift()
433 points_shifted[np - 1][0] = points[np - 1][0] + offset * prev_normal[0]; in shift()
434 points_shifted[np - 1][1] = points[np - 1][1] + offset * prev_normal[1]; in shift()