Lines Matching defs:l1
429 static INLINE VGfloat line_angle_to(const VGfloat *l1,
433 if (null_line(l1) || null_line(l1))
436 a1 = line_angle(l1);
448 static INLINE VGfloat line_angles(const VGfloat *l1,
453 if (null_line(l1) || null_line(l2))
456 cos_line = (line_dx(l1)*line_dx(l2) + line_dy(l1)*line_dy(l2)) /
457 (line_lengthv(l1)*line_lengthv(l2));
475 static enum intersection_type line_intersect(const VGfloat *l1,
483 if (null_line(l1) || null_line(l2) ||
484 !finite_coords4(l1) || !finite_coords4(l2))
487 type = do_lines_intersect(l1[0], l1[1], l1[2], l1[3], l2[0], l2[1], l2[2], l2[3])
490 dx_zero = floatsEqual(line_dx(l1) + 1, 1);
498 isect[0] = l1[0];
499 isect[1] = la * l1[0] + l2[1] - la * l2[0];
501 VGfloat ta = line_dy(l1) / line_dx(l1);
503 isect[1] = ta * l2[0] + l1[1] - ta*l1[0];
506 VGfloat ta = line_dy(l1) / line_dx(l1);
511 x = ( - l2[1] + la * l2[0] + l1[1] - ta * l1[0] ) / (la - ta);
513 isect[1] = ta*(x - l1[0]) + l1[1];
657 VGfloat l1[4] = {prev_line[0],
666 line_translate(l1, line_dx(l1), line_dy(l1));
667 line_set_length(l1, offset);
672 stroker_emit_line_to(stroker, l1[2], l1[3]);
693 VGfloat l1[4] = { prev_line[0], prev_line[1],
698 line_translate(l1, line_dx(l1), line_dy(l1));
699 line_set_length(l1, KAPPA * offset);
705 stroker_emit_curve_to(stroker, l1[2], l1[3],
714 line_translate(l1, next_line[0] - l1[0], next_line[1] - l1[1]);
718 l1[2], l1[3],
719 l1[0], l1[1]);