forked from aerolalit/RANSAC-Algorithm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mypoint2f.hpp
34 lines (30 loc) · 856 Bytes
/
mypoint2f.hpp
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
32
33
34
//
// mypoint2f.hpp
// hw3class
//
// Created by ललित सिंह on 28/10/2016.
// Copyright © 2016 ललित सिंह. All rights reserved.
//
#ifndef mypoint2f_hpp
#define mypoint2f_hpp
#include <stdio.h>
#include <iostream>
//#include "vect.hpp"
class mypoint2f{
private:
double x;
double y;
public:
mypoint2f();
mypoint2f(double, double);
double getx();
double gety();
friend mypoint2f operator -(mypoint2f&, mypoint2f&);
friend mypoint2f operator *( mypoint2f&, mypoint2f&);
friend mypoint2f operator +(mypoint2f&, mypoint2f&);
friend mypoint2f operator *(double&, mypoint2f&);
friend mypoint2f operator *( mypoint2f&, double&);
friend std::ostream& operator <<(std::ostream&, mypoint2f&);
friend bool operator ==(mypoint2f&, mypoint2f&);
};
#endif /* mypoint2f_hpp */