mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 06:28:01 +02:00
[cairo-matrix] Add _cairo_matrix_transform_bounding_box_fixed()
This commit is contained in:
parent
6c9902fd74
commit
bdfda97f19
2 changed files with 17 additions and 0 deletions
|
|
@ -423,6 +423,18 @@ _cairo_matrix_transform_bounding_box (const cairo_matrix_t *matrix,
|
|||
}
|
||||
}
|
||||
|
||||
cairo_private void
|
||||
_cairo_matrix_transform_bounding_box_fixed (const cairo_matrix_t *matrix,
|
||||
cairo_box_t *bbox,
|
||||
cairo_bool_t *is_tight)
|
||||
{
|
||||
double x1, y1, x2, y2;
|
||||
|
||||
_cairo_box_to_doubles (bbox, &x1, &y1, &x2, &y2);
|
||||
_cairo_matrix_transform_bounding_box (matrix, &x1, &y1, &x2, &y2, is_tight);
|
||||
_cairo_box_from_doubles (bbox, &x1, &y1, &x2, &y2);
|
||||
}
|
||||
|
||||
static void
|
||||
_cairo_matrix_scalar_multiply (cairo_matrix_t *matrix, double scalar)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -2051,6 +2051,11 @@ _cairo_matrix_transform_bounding_box (const cairo_matrix_t *matrix,
|
|||
double *x2, double *y2,
|
||||
cairo_bool_t *is_tight);
|
||||
|
||||
cairo_private void
|
||||
_cairo_matrix_transform_bounding_box_fixed (const cairo_matrix_t *matrix,
|
||||
cairo_box_t *bbox,
|
||||
cairo_bool_t *is_tight);
|
||||
|
||||
cairo_private cairo_bool_t
|
||||
_cairo_matrix_is_invertible (const cairo_matrix_t *matrix);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue