Public Member Functions | Public Attributes | List of all members
quad::Line2D Struct Reference

Public Member Functions

 Line2D (const Pt2D &a, const Pt2D &b)
 
bool operator< (const Line2D &l) const
 

Public Attributes

float m
 
float c
 
float minz
 
float maxz
 

Detailed Description

Definition at line 53 of file QuadVtx_module.cc.

Constructor & Destructor Documentation

quad::Line2D::Line2D ( const Pt2D a,
const Pt2D b 
)
inline

Definition at line 54 of file QuadVtx_module.cc.

55  : m((b.x - a.x) / (b.z - a.z))
56  , c(b.x - m * b.z)
57  , // w(a.energy * b.energy),
58  minz(std::min(a.z, b.z))
59  , maxz(std::max(a.z, b.z))
60  {
61  assert(a.z != b.z); // no vertical lines
62  }
const double a
static int max(int a, int b)
T min(sqlite3 *const db, std::string const &table_name, std::string const &column_name)
Definition: statistics.h:55
static bool * b
Definition: config.cpp:1043

Member Function Documentation

bool quad::Line2D::operator< ( const Line2D l) const
inline

Definition at line 65 of file QuadVtx_module.cc.

66  {
67  return m < l.m;
68  }
static QStrList * l
Definition: config.cpp:1044

Member Data Documentation

float quad::Line2D::c

Definition at line 70 of file QuadVtx_module.cc.

float quad::Line2D::m

Definition at line 70 of file QuadVtx_module.cc.

float quad::Line2D::maxz

Definition at line 70 of file QuadVtx_module.cc.

float quad::Line2D::minz

Definition at line 70 of file QuadVtx_module.cc.


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