diff options
author | Alessandro Ranellucci <aar@cpan.org> | 2013-11-24 00:39:05 +0400 |
---|---|---|
committer | Alessandro Ranellucci <aar@cpan.org> | 2013-11-24 00:39:05 +0400 |
commit | 0516aac71588d9558fff9ab9cfd125d41af6b412 (patch) | |
tree | b4fb4a72f00d195a3f8c313f41f221a44093d200 /xs/xsp/Geometry.xsp | |
parent | 4d5d003ba73678d141358690cb1259bef5bdbaa1 (diff) |
Ported chained_path() to XS
Diffstat (limited to 'xs/xsp/Geometry.xsp')
-rw-r--r-- | xs/xsp/Geometry.xsp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/xs/xsp/Geometry.xsp b/xs/xsp/Geometry.xsp index 52750c8f2..09724e368 100644 --- a/xs/xsp/Geometry.xsp +++ b/xs/xsp/Geometry.xsp @@ -20,4 +20,21 @@ convex_hull(points) OUTPUT: RETVAL +std::vector<Points::size_type> +chained_path(points) + Points points + CODE: + chained_path(points, RETVAL); + OUTPUT: + RETVAL + +std::vector<Points::size_type> +chained_path_from(points, start_from) + Points points + Point* start_from + CODE: + chained_path(points, RETVAL, *start_from); + OUTPUT: + RETVAL + %} |