aboutsummaryrefslogtreecommitdiff
path: root/include/HyperNeat/Utils/Point.hpp
blob: ba51bac899a3a34447329d86ac27f703dec2d683 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef __HYPERNEAT_POINT_HPP__
#define __HYPERNEAT_POINT_HPP__

namespace hyperneat
{
    class Point
    {
    public:
        Point() = default;
        Point(double x, double y);

        double distance(const Point& other) const;
        bool operator== (const Point& other) const;
        bool operator< (const Point& other) const;

        double _x = 0.0;
        double _y = 0.0;
    };
}

#endif