5 double ParkingSlot::heading() const
7 return atan2(this->y4() - this->y1(), this->x4() - this->x1());
10 bool ParkingSlot::parallel() const
13 pow(this->x2() - this->x1(), 2)
14 + pow(this->y2() - this->y1(), 2)
17 pow(this->x3() - this->x2(), 2)
18 + pow(this->y3() - this->y2(), 2)
26 bool ParkingSlot::right() const
29 (this->x2() - this->x1()) * (this->y4() - this->y1())
30 - (this->y2() - this->y1()) * (this->x4() - this->x1())
37 ParkingSlot::ParkingSlot()