17 #ifdef _MSC_VER // Microsoft Visual C++ -- warning level 4 27 : point_coordinates(0)
29 , point_dimension(q.hullDimension())
67 QhullPointIterator i(*
this);
68 std::vector<coordT> vs;
70 vs.push_back(i.next());
106 double diff= *c++ - *c2++;
110 return (dist2 < qh_qh->distanceEpsilon());
126 throw QhullError(10076,
"QhullPoint error: Cannot compute distance() for undefined point");
132 dist= (c[0]-c2[0])*(c[0]-c2[0]) + (c[1]-c2[1])*(c[1]-c2[1]);
135 dist= (c[0]-c2[0])*(c[0]-c2[0]) + (c[1]-c2[1])*(c[1]-c2[1]) + (c[2]-c2[2])*(c[2]-c2[2]);
138 dist= (c[0]-c2[0])*(c[0]-c2[0]) + (c[1]-c2[1])*(c[1]-c2[1]) + (c[2]-c2[2])*(c[2]-c2[2]) + (c[3]-c2[3])*(c[3]-c2[3]);
141 dist= (c[0]-c2[0])*(c[0]-c2[0]) + (c[1]-c2[1])*(c[1]-c2[1]) + (c[2]-c2[2])*(c[2]-c2[2]) + (c[3]-c2[3])*(c[3]-c2[3]) + (c[4]-c2[4])*(c[4]-c2[4]);
144 dist= (c[0]-c2[0])*(c[0]-c2[0]) + (c[1]-c2[1])*(c[1]-c2[1]) + (c[2]-c2[2])*(c[2]-c2[2]) + (c[3]-c2[3])*(c[3]-c2[3]) + (c[4]-c2[4])*(c[4]-c2[4]) + (c[5]-c2[5])*(c[5]-c2[5]);
147 dist= (c[0]-c2[0])*(c[0]-c2[0]) + (c[1]-c2[1])*(c[1]-c2[1]) + (c[2]-c2[2])*(c[2]-c2[2]) + (c[3]-c2[3])*(c[3]-c2[3]) + (c[4]-c2[4])*(c[4]-c2[4]) + (c[5]-c2[5])*(c[5]-c2[5]) + (c[6]-c2[6])*(c[6]-c2[6]);
150 dist= (c[0]-c2[0])*(c[0]-c2[0]) + (c[1]-c2[1])*(c[1]-c2[1]) + (c[2]-c2[2])*(c[2]-c2[2]) + (c[3]-c2[3])*(c[3]-c2[3]) + (c[4]-c2[4])*(c[4]-c2[4]) + (c[5]-c2[5])*(c[5]-c2[5]) + (c[6]-c2[6])*(c[6]-c2[6]) + (c[7]-c2[7])*(c[7]-c2[7]);
154 for(
int k=dim; k--; ){
155 dist += (*c - *c2) * (*c - *c2);
177 if(pr.point_message){
178 if(*pr.point_message){
179 os << pr.point_message <<
" ";
182 os <<
"p" << i <<
": ";
188 if(pr.point_message){
QhullRidge – Qhull's ridge structure, ridgeT, as a C++ class.
ostream & operator<<(ostream &os, const QhullPoint::PrintPoint &pr)
Same as qh_printpointid [io.c].
bool operator==(const QhullPoint &other) const
int point_dimension
Default dimension is qh_qh->hull_dim.
coordT * point_coordinates
Pointer to first coordinate, 0 if undefined.
Interface to Qhull from C++.
int hullDimension() const
Dimension of the computed hull.
std::vector< coordT > toStdVector() const
PrintPoint print(const char *message) const
const coordT * coordinates() const
0 if undefined
double distance(const QhullPoint &p) const
Return distance between two points.