ROME 2 Lab5

Point.h

Committer:
oehlemar
Date:
2020-06-12
Revision:
1:5201940a41c1
Parent:
0:893a1e710078

File content as of revision 1:5201940a41c1:

/*
 * Point.h
 * Copyright (c) 2020, ZHAW
 * All rights reserved.
 */

#ifndef POINT_H_
#define POINT_H_

#include <cstdlib>

/**
 * This class stores the coordinates of a point in two dimensions.
 */
class Point {
    
    public:
        
        float           x;
        float           y;
        float           r;
        float           alpha;
        
                        Point();
                        Point(float r, float alpha);
        virtual         ~Point();
        float           distance();
        float           distance(Point& point);
        float           manhattanDistance();
        float           manhattanDistance(Point& point);
};

#endif /* POINT_H_ */