- if (this->ps().parallel())
- return false;
- else
- return true;
- double heading = atan2(
- this->ps().y2() - this->ps().y1(),
- this->ps().x2() - this->ps().x1()
- );
- while (heading < 0) heading += 2 * M_PI;
- double h = this->gc().h();
- while (h < 0) h += 2 * M_PI;
- if (std::abs(heading - h) < M_PI / 4)
- return true;