#include "Segment2.h"
#include "common.h"
Go to the source code of this file.
◆ getBox() [1/2]
Bbox2 GEOM_FADE25D::getBox |
( |
std::vector< Point2 * > & |
vP | ) |
|
- Parameters
-
vP | A vector of Point2 pointers. |
- Returns
- The bounding box that contains all points.
◆ getBox() [2/2]
Bbox2 GEOM_FADE25D::getBox |
( |
std::vector< Point2 > & |
vP | ) |
|
- Parameters
-
vP | A vector of Point2 objects. |
- Returns
- The bounding box that contains all points.
◆ intersection()
Bbox2 GEOM_FADE25D::intersection |
( |
const Bbox2 & |
a, |
|
|
const Bbox2 & |
b |
|
) |
| |
|
inline |
This function calculates the intersection of two 2D axis-aligned bounding boxes, a
and b
. The intersection is the region where both bounding boxes overlap. If there is no overlap, the resulting bounding box is marked as invalid (bValid = false
).
- Parameters
-
a | The first bounding box. |
b | The second bounding box. |
- Returns
- A
Bbox2
object representing the intersection of a
and b
. If the boxes do not intersect, the resulting bounding box is invalid.
◆ operator<<()
std::ostream& GEOM_FADE25D::operator<< |
( |
std::ostream & |
stream, |
|
|
const Bbox2 & |
pC |
|
) |
| |
|
inline |
- Parameters
-
stream | The output stream |
pC | The bounding box to print. |
- Returns
- The output stream