PGROUTING  3.2
anonymous_namespace{alphaShape_driver.cpp} Namespace Reference

this file is not compiled with boost 1.53 or less More...

Functions

bool data_eq (const Pgr_edge_xy_t &lhs, const Pgr_edge_xy_t &rhs, int64_t round)
 

Detailed Description

this file is not compiled with boost 1.53 or less

Function Documentation

◆ data_eq()

bool anonymous_namespace{alphaShape_driver.cpp}::data_eq ( const Pgr_edge_xy_t lhs,
const Pgr_edge_xy_t rhs,
int64_t  round 
)

Definition at line 49 of file alphaShape_driver.cpp.

49  {
50  return
51  std::floor(lhs.x1 * static_cast<double>(round)) == std::floor(rhs.x1 * static_cast<double>(round))
52  &&
53  std::floor(lhs.y1 * static_cast<double>(round)) == std::floor(rhs.y1 * static_cast<double>(round));
54 }

References Pgr_edge_xy_t::x1, and Pgr_edge_xy_t::y1.

Referenced by do_alphaShape().

Pgr_edge_xy_t::y1
double y1
Definition: pgr_edge_xy_t.h:45
Pgr_edge_xy_t::x1
double x1
Definition: pgr_edge_xy_t.h:44