MySQL 8.4.2
Source Code Documentation
point_xy Class Reference

Point with coordinates X and Y. More...

#include <spatial.h>

Public Member Functions

 point_xy ()=default
 
 point_xy (double x_arg, double y_arg)
 
double distance (const point_xy &p) const
 Distance to another point. More...
 
bool eq (point_xy p) const
 Compare to another point. More...
 

Public Attributes

double x
 
double y
 

Detailed Description

Point with coordinates X and Y.

Constructor & Destructor Documentation

◆ point_xy() [1/2]

point_xy::point_xy ( )
default

◆ point_xy() [2/2]

point_xy::point_xy ( double  x_arg,
double  y_arg 
)
inline

Member Function Documentation

◆ distance()

double point_xy::distance ( const point_xy p) const

Distance to another point.

◆ eq()

bool point_xy::eq ( point_xy  p) const
inline

Compare to another point.

Return true if equal, false if not equal.

Member Data Documentation

◆ x

double point_xy::x

◆ y

double point_xy::y

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