SK_API int sk_path_get_points (const sk_path_t* cpath, sk_point_t* points, int max);
+SK_API bool sk_path_contains (const sk_path_t* cpath, float x, float y);
+
+SK_API bool sk_path_get_last_point (const sk_path_t* cpath, sk_point_t* point);
+
SK_C_PLUS_PLUS_END_GUARD
#endif
int sk_path_get_points(const sk_path_t* cpath, sk_point_t* cpoints, int max) {
const SkPath& path = AsPath(*cpath);
return path.getPoints(AsPoint(cpoints), max);
-}
\ No newline at end of file
+}
+
+bool sk_path_contains (const sk_path_t* cpath, float x, float y) {
+ return AsPath(*cpath).contains(x, y);
+}
+
+bool sk_path_get_last_point (const sk_path_t* cpath, sk_point_t* point) {
+ if (point) {
+ return AsPath(*cpath).getLastPt(AsPoint(point));
+ } else {
+ return false;
+ }
+}