diff options
author | Bryce Harrington <b.harrington@samsung.com> | 2014-02-26 18:44:46 -0800 |
---|---|---|
committer | Bryce Harrington <b.harrington@samsung.com> | 2014-02-26 18:44:46 -0800 |
commit | 273210683f182d72789f88df80fec8c4d08bb30f (patch) | |
tree | 772e0ba2622268873f134b4c1df34ce385ba6b9d /src/cairo-fixed-private.h | |
parent | e555dfc7173897bc0819c715e8897cd1c886e2a3 (diff) | |
download | cairo-273210683f182d72789f88df80fec8c4d08bb30f.tar.gz |
Add comment to explain _cairo_edge_compute_intersection_*
Patch by Homer Hsing
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=50412
Diffstat (limited to 'src/cairo-fixed-private.h')
-rw-r--r-- | src/cairo-fixed-private.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cairo-fixed-private.h b/src/cairo-fixed-private.h index e970c0ff9..62dc61ad9 100644 --- a/src/cairo-fixed-private.h +++ b/src/cairo-fixed-private.h @@ -312,7 +312,7 @@ _cairo_fixed_mul_div_floor (cairo_fixed_t a, cairo_fixed_t b, cairo_fixed_t c) return _cairo_int64_32_div (_cairo_int32x32_64_mul (a, b), c); } - +/* compute y from x so that (x,y), p1, and p2 are collinear */ static inline cairo_fixed_t _cairo_edge_compute_intersection_y_for_x (const cairo_point_t *p1, const cairo_point_t *p2, @@ -333,6 +333,7 @@ _cairo_edge_compute_intersection_y_for_x (const cairo_point_t *p1, return y; } +/* compute x from y so that (x,y), p1, and p2 are collinear */ static inline cairo_fixed_t _cairo_edge_compute_intersection_x_for_y (const cairo_point_t *p1, const cairo_point_t *p2, |