GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — code/Chapter7_HeadPoseEstimation/Triangle.cpp at master · iinitd/code

Expand file tree

/

Triangle.cpp

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
executable file
·
31 lines (23 loc) · 660 Bytes
/

Triangle.cpp

Copy path

File metadata and controls

executable file
·
31 lines (23 loc) · 660 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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.