MySQL 8.0.40
Source Code Documentation
MBR Struct Reference

#include <spatial.h>

Public Member Functions

 MBR ()
 
 MBR (const double xmin_arg, const double ymin_arg, const double xmax_arg, const double ymax_arg)
 
 MBR (const point_xy &min, const point_xy &max)
 
void add_xy (double x, double y)
 
void add_xy (point_xy p)
 
void add_xy (const char *px, const char *py)
 
void add_mbr (const MBR *mbr)
 
int equals (const MBR *mbr) const
 
int disjoint (const MBR *mbr) const
 
int intersects (const MBR *mbr) const
 
int within (const MBR *mbr) const
 
int contains (const MBR *mbr) const
 
int covered_by (const MBR *mbr) const
 
int covers (const MBR *mbr) const
 
bool inner_point (double x, double y) const
 
int dimension () const
 The dimension maps to an integer as: More...
 
int overlaps (const MBR *mbr) const
 

Public Attributes

double xmin
 
double ymin
 
double xmax
 
double ymax
 

Constructor & Destructor Documentation

◆ MBR() [1/3]

MBR::MBR ( )
inline

◆ MBR() [2/3]

MBR::MBR ( const double  xmin_arg,
const double  ymin_arg,
const double  xmax_arg,
const double  ymax_arg 
)
inline

◆ MBR() [3/3]

MBR::MBR ( const point_xy min,
const point_xy max 
)
inline

Member Function Documentation

◆ add_mbr()

void MBR::add_mbr ( const MBR mbr)
inline

◆ add_xy() [1/3]

void MBR::add_xy ( const char *  px,
const char *  py 
)
inline

◆ add_xy() [2/3]

void MBR::add_xy ( double  x,
double  y 
)
inline

◆ add_xy() [3/3]

void MBR::add_xy ( point_xy  p)
inline

◆ contains()

int MBR::contains ( const MBR mbr) const
inline

◆ covered_by()

int MBR::covered_by ( const MBR mbr) const
inline

◆ covers()

int MBR::covers ( const MBR mbr) const
inline

◆ dimension()

int MBR::dimension ( ) const
inline

The dimension maps to an integer as:

  • Polygon -> 2
  • Horizontal or vertical line -> 1
  • Point -> 0
  • Invalid MBR -> -1

◆ disjoint()

int MBR::disjoint ( const MBR mbr) const
inline

◆ equals()

int MBR::equals ( const MBR mbr) const
inline

◆ inner_point()

bool MBR::inner_point ( double  x,
double  y 
) const
inline

◆ intersects()

int MBR::intersects ( const MBR mbr) const
inline

◆ overlaps()

int MBR::overlaps ( const MBR mbr) const
inline

◆ within()

int MBR::within ( const MBR mbr) const

Member Data Documentation

◆ xmax

double MBR::xmax

◆ xmin

double MBR::xmin

◆ ymax

double MBR::ymax

◆ ymin

double MBR::ymin

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