scatter 0.1.0
Ellipse.hpp
1/*
2 * Copyright (C) Tobias Löw (tobi.loew@protonmail.ch)
3 *
4 * This file is part of Scatter
5 *
6 * Scatter is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
10 *
11 * Scatter is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with Scatter. If not, see <https://www.gnu.org/licenses/>.
18 */
19
20#pragma once
21
22#include <scatter/Point.hpp>
23
24namespace scatter
25{
30 class Ellipse
31 {
32 public:
42 Ellipse(const Point &center, const double &minor, const double &major, const double &rotation);
43
48 virtual ~Ellipse();
49
55 const Point &getCenter() const;
56
62 const double &getMinor() const;
63
69 const double &getMajor() const;
70
76 const double &getRotation() const;
77
78 protected:
79 private:
81 Point center_;
83 double minor_;
85 double major_;
87 double rotation_;
88 };
89
90} // namespace scatter
[brief description]
Definition Ellipse.hpp:31
const double & getMinor() const
return the length of the minor axis
virtual ~Ellipse()
destructor
Ellipse(const Point &center, const double &minor, const double &major, const double &rotation)
constructor
const Point & getCenter() const
return the center Point
const double & getMajor() const
return the length of the major axis
const double & getRotation() const
return the angle between the major and the horizontal axis (in rad)
[brief description]
Definition Point.hpp:29