summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2014-02-17 15:46:52 +0100
committerTor Andersson <tor.andersson@artifex.com>2014-02-17 16:36:06 +0100
commitd3e3c894673a72753ba9cea5786ab7fbff78e2e8 (patch)
tree7668b227a0abef2d4e3018c5e42d4f24ee94c633 /include
parent41084f0023df8706fadfa2e2b6373ec03a7c7ca4 (diff)
downloadmupdf-d3e3c894673a72753ba9cea5786ab7fbff78e2e8.tar.xz
Add fz_transform_point_xy to simplify transforming a point.
Many times, the idiom p.x = x; p.y = y; fz_transform_point() is used. This function should simplify that use case by both initializing and transforming the point in one call.
Diffstat (limited to 'include')
-rw-r--r--include/mupdf/fitz/math.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/mupdf/fitz/math.h b/include/mupdf/fitz/math.h
index b2a5cd4a..54c8f0c8 100644
--- a/include/mupdf/fitz/math.h
+++ b/include/mupdf/fitz/math.h
@@ -561,6 +561,7 @@ fz_irect *fz_translate_irect(fz_irect *a, int xoff, int yoff);
Does not throw exceptions.
*/
fz_point *fz_transform_point(fz_point *restrict point, const fz_matrix *restrict transform);
+fz_point *fz_transform_point_xy(fz_point *restrict point, const fz_matrix *restrict transform, float x, float y);
/*
fz_transform_vector: Apply a transformation to a vector.