MySQL  8.0.22
Source Code Documentation
gis::Geographic_box Class Reference

A Geographic 2d box. More...

#include <box.h>

Inheritance diagram for gis::Geographic_box:
gis::Box

Public Member Functions

 Geographic_box ()=default
 
 Geographic_box (Geographic_point &&min_corner, Geographic_point &&max_corner)
 
Coordinate_system coordinate_system () const override
 Gets the coordinate system. More...
 
Geographic_point const & min_corner () const override
 Returns the minimum corner. More...
 
Geographic_pointmin_corner () override
 
Geographic_point const & max_corner () const override
 Returns the maximum corner. More...
 
Geographic_pointmax_corner () override
 
- Public Member Functions inherited from gis::Box
 Box ()=default
 
 Box (const Box &)=default
 
 Box (Box &&)=default
 
Boxoperator= (const Box &)=default
 
Boxoperator= (Box &&)=default
 
virtual ~Box ()
 

Private Attributes

Geographic_point m_min_corner
 The corner with minimum X and Y values. More...
 
Geographic_point m_max_corner
 The corner with maximum X and Y values. More...
 

Detailed Description

A Geographic 2d box.

Unlike polygons, the sides of the box are not the shortest distance between the endpoints. A box side will follow the latitude line, while a linestring (or polygon segment) between the same points won't.

Constructor & Destructor Documentation

◆ Geographic_box() [1/2]

gis::Geographic_box::Geographic_box ( )
default

◆ Geographic_box() [2/2]

gis::Geographic_box::Geographic_box ( Geographic_point &&  min_corner,
Geographic_point &&  max_corner 
)
inline

Member Function Documentation

◆ coordinate_system()

Coordinate_system gis::Geographic_box::coordinate_system ( ) const
inlineoverridevirtual

Gets the coordinate system.

Returns
The coordiante system type.

Implements gis::Box.

◆ max_corner() [1/2]

Geographic_point const& gis::Geographic_box::max_corner ( ) const
inlineoverridevirtual

Returns the maximum corner.

Returns
The maximum corner.

Implements gis::Box.

◆ max_corner() [2/2]

Geographic_point& gis::Geographic_box::max_corner ( )
inlineoverridevirtual

Implements gis::Box.

◆ min_corner() [1/2]

Geographic_point const& gis::Geographic_box::min_corner ( ) const
inlineoverridevirtual

Returns the minimum corner.

Returns
The minimum corner.

Implements gis::Box.

◆ min_corner() [2/2]

Geographic_point& gis::Geographic_box::min_corner ( )
inlineoverridevirtual

Implements gis::Box.

Member Data Documentation

◆ m_max_corner

Geographic_point gis::Geographic_box::m_max_corner
private

The corner with maximum X and Y values.

◆ m_min_corner

Geographic_point gis::Geographic_box::m_min_corner
private

The corner with minimum X and Y values.


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