OmniSciDB  72c90bc290
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
anonymous_namespace{Types.cpp}::BoundingBox Struct Reference
+ Collaboration diagram for anonymous_namespace{Types.cpp}::BoundingBox:

Public Member Functions

 BoundingBox ()
 
void update (double x, double y)
 

Public Attributes

Coords min
 
Coords max
 

Detailed Description

Definition at line 50 of file Types.cpp.

Constructor & Destructor Documentation

anonymous_namespace{Types.cpp}::BoundingBox::BoundingBox ( )
inline

Member Function Documentation

void anonymous_namespace{Types.cpp}::BoundingBox::update ( double  x,
double  y 
)
inline

Definition at line 55 of file Types.cpp.

Referenced by anonymous_namespace{Types.cpp}::process_poly_ring().

55  {
56  if (x < min.x) {
57  min.x = x;
58  }
59  if (y < min.y) {
60  min.y = y;
61  }
62  if (x > max.x) {
63  max.x = x;
64  }
65  if (y > max.y) {
66  max.y = y;
67  }
68  }

+ Here is the caller graph for this function:

Member Data Documentation

Coords anonymous_namespace{Types.cpp}::BoundingBox::max

Definition at line 52 of file Types.cpp.

Coords anonymous_namespace{Types.cpp}::BoundingBox::min

Definition at line 51 of file Types.cpp.


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