GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — code/Chapter7_HeadPoseEstimation/Triangle.cpp at master · sausthapit/code Expand file tree/ Copy pathTriangle.cppMore file actions executable file ·31 lines (23 loc) · 660 Bytes / Copy pathTriangle.cppFile metadata and controlsexecutable file ·31 lines (23 loc) · 660 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 #include "Triangle.h" #include <vector> #include <algorithm> using namespace std; Triangle::Triangle(int d1,int d2,int d3){ vector<int> vertices; vertices.push_back(d1); vertices.push_back(d2); vertices.push_back(d3); sort(vertices.begin(), vertices.end()); v1 = vertices.at(0); v2 = vertices.at(1); v3 = vertices.at(2); } Triangle::~Triangle(void) { } bool Triangle::operator < (const Triangle& other) const { if(v1 != other.v1) return (v1<other.v1); else if( v2 != other.v2) return (v2<other.v2); else if( v3 != other.v3) return (v3<other.v3); else return false; } |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |