Geogram Version 1.10.0-rc
A programming library of geometric algorithms
Loading...
Searching...
No Matches
GEO::Box2d Class Reference

Axis-aligned bounding box. More...

#include <geogram/basic/geometry.h>

Public Member Functions

bool contains (const vec2 &b) const
 Tests whether a box contains a point.
 
void enlarge (double d)
 Enlarges the box.
 

Public Attributes

double xy_min [2]
 
double xy_max [2]
 

Detailed Description

Axis-aligned bounding box.

Definition at line 767 of file geometry.h.

Member Function Documentation

◆ contains()

bool GEO::Box2d::contains ( const vec2 b) const
inline

Tests whether a box contains a point.

Parameters
[in]bthe point
Returns
true if this box contains b, false otherwise

Definition at line 777 of file geometry.h.

◆ enlarge()

void GEO::Box2d::enlarge ( double  d)
inline

Enlarges the box.

Parameters
[in]dthe amount that should be subtracted from the lower bounds and added to the upper bounds

Definition at line 794 of file geometry.h.

Member Data Documentation

◆ xy_max

double GEO::Box2d::xy_max[2]

Definition at line 770 of file geometry.h.

◆ xy_min

double GEO::Box2d::xy_min[2]

Definition at line 769 of file geometry.h.


The documentation for this class was generated from the following file: