X-Git-Url: http://rtime.felk.cvut.cz/gitweb/hubacji1/bcar.git/blobdiff_plain/f7cf47bc06640058e7684fb4b8e9c7907d6323bd..2a4daad5c442d3346ecf52bb485fad2b47a3a3c9:/src/pslot.cc diff --git a/src/pslot.cc b/src/pslot.cc index 85581fd..1a0f323 100644 --- a/src/pslot.cc +++ b/src/pslot.cc @@ -11,12 +11,12 @@ namespace bcar { ParkingSlot::ParkingSlot(Point p, double h, double W, double L) : - border_({p, + border_{p, Point(p.x() + W * cos(h - M_PI / 2.0), p.y() + W * sin(h - M_PI / 2.0)), Point(p.x() + W * cos(h - M_PI / 2.0) + L * cos(h), p.y() + W * sin(h - M_PI / 2.0) + L * sin(h)), - Point(p.x() + L * cos(h), p.y() + L * sin(h))}), + Point(p.x() + L * cos(h), p.y() + L * sin(h))}, entry_(border_[0], border_[3]), rear_(border_[0], border_[1]), curb_(border_[1], border_[2]), @@ -26,8 +26,8 @@ ParkingSlot::ParkingSlot(Point p, double h, double W, double L) : ParkingSlot::ParkingSlot(double lrx, double lry, double rrx, double rry, double rfx, double rfy, double lfx, double lfy) : - border_({Point(lrx, lry), Point(rrx, rry), - Point(rfx, rfy), Point(lfx, lfy)}), + border_{Point(lrx, lry), Point(rrx, rry), + Point(rfx, rfy), Point(lfx, lfy)}, entry_(border_[0], border_[3]), rear_(border_[0], border_[1]), curb_(border_[1], border_[2]),