]> rtime.felk.cvut.cz Git - hubacji1/psp.git/blobdiff - api/psp.h
Add number of cusps computation
[hubacji1/psp.git] / api / psp.h
index 91e0b9c07a35e3fe3ce638f71832298c45fdbbbd..0028fde0a827fce274b44c1319992d751410716e 100644 (file)
--- a/api/psp.h
+++ b/api/psp.h
@@ -19,6 +19,8 @@ class PSPlanner {
                 BicycleCar gc_;
                 ParkingSlot ps_;
 
+                unsigned int c_ = 0; // number of cusps
+
                 // find entry to slot
                 void fe_parallel();
                 void fe_perpendicular();
@@ -95,6 +97,8 @@ class PSPlanner {
                 BicycleCar &gc() { return this->gc_; }
                 ParkingSlot &ps() { return this->ps_; }
 
+                unsigned int c() const { return this->c_; }
+
                 PSPlanner();
 };