Line data Source code
1 : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : /*
3 : * This file is part of the LibreOffice project.
4 : *
5 : * This Source Code Form is subject to the terms of the Mozilla Public
6 : * License, v. 2.0. If a copy of the MPL was not distributed with this
7 : * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 : *
9 : * This file incorporates work covered by the following license notice:
10 : *
11 : */
12 : #include "b2dellipse.hxx"
13 :
14 : #include <basegfx/point/b2dpoint.hxx>
15 : #include <basegfx/matrix/b2dhommatrix.hxx>
16 :
17 : namespace basegfx
18 : {
19 0 : B2DEllipse::B2DEllipse(const basegfx::B2DPoint& rCenter, const basegfx::B2DTuple& rRadius)
20 0 : : maCenter(rCenter), maRadius(rRadius)
21 : {
22 0 : }
23 :
24 0 : B2DEllipse::~B2DEllipse()
25 : {
26 0 : }
27 :
28 0 : bool B2DEllipse::operator==(const B2DEllipse& rEllipse) const
29 : {
30 0 : return (maCenter == rEllipse.maCenter) && (maRadius == rEllipse.maRadius);
31 : }
32 :
33 0 : bool B2DEllipse::operator!=(const B2DEllipse& rEllipse) const
34 : {
35 0 : return !(*this == rEllipse);
36 : }
37 :
38 0 : basegfx::B2DPoint B2DEllipse::getB2DEllipseCenter() const
39 : {
40 0 : return maCenter;
41 : }
42 :
43 0 : basegfx::B2DTuple B2DEllipse::getB2DEllipseRadius() const
44 : {
45 0 : return maRadius;
46 : }
47 : } // end of namespace basegfx
48 :
49 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|