Placed back the bbox() function. (Will be deprecated in a separate commit.)

This commit is contained in:
Efi Fogel 2020-08-24 11:52:27 +03:00
parent b4e7a4ad02
commit 58fb204e97
1 changed files with 9 additions and 0 deletions

View File

@ -1436,6 +1436,15 @@ public:
/*! Flip the segment (swap its source and target).
*/
Arr_segment_2 flip() const;
/*! Create a bounding box for the segment.
*/
Bbox_2 bbox() const
{
Kernel kernel;
auto construct_bbox = kernel.construct_bbox_2_object();
return construct_bbox(this->m_ps) + construct_bbox(this->m_pt);
}
};
//! \brief constructs default.