app: add gimp_transform_polygon()

gimp_transform_polygon() transforms an (open or closed) polygon by
a GimpMatrix3, performing clipping to the near plane, to avoid
erroneously transforming points behind the camera.
This commit is contained in:
Ell
2018-01-28 09:41:19 -05:00
parent 7dfe81f13d
commit cc20cb41f3
2 changed files with 84 additions and 0 deletions

View File

@ -98,5 +98,12 @@ gboolean gimp_transform_polygon_is_convex (gdouble x1,
gdouble x4,
gdouble y4);
void gimp_transform_polygon (const GimpMatrix3 *matrix,
const GimpVector2 *vertices,
gint n_vertices,
gboolean closed,
GimpVector2 *t_vertices,
gint *n_t_vertices);
#endif /* __GIMP_TRANSFORM_UTILS_H__ */