app: add gimp_transform_bezier_coords()

... which transforms a single cubic Bezier segment, performing
clipping by the near plane, to avoid erroneously transforming parts
of the curve behind the camera.
This commit is contained in:
Ell
2018-02-03 04:56:04 -05:00
parent 6b62cce03b
commit 9bf1e1c884
2 changed files with 368 additions and 0 deletions

View File

@ -114,5 +114,12 @@ void gimp_transform_polygon_coords (const GimpMatrix3 *matrix,
GimpCoords *t_vertices,
gint *n_t_vertices);
void gimp_transform_bezier_coords (const GimpMatrix3 *matrix,
const GimpCoords bezier[4],
GimpCoords t_bezier[2][4],
gint *n_t_bezier,
gboolean *start_in,
gboolean *end_in);
#endif /* __GIMP_TRANSFORM_UTILS_H__ */