Branch data Line data Source code
1 : : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : : /*
3 : : * Version: MPL 1.1 / GPLv3+ / LGPLv3+
4 : : *
5 : : * The contents of this file are subject to the Mozilla Public License Version
6 : : * 1.1 (the "License"); you may not use this file except in compliance with
7 : : * the License. You may obtain a copy of the License at
8 : : * http://www.mozilla.org/MPL/
9 : : *
10 : : * Software distributed under the License is distributed on an "AS IS" basis,
11 : : * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
12 : : * for the specific language governing rights and limitations under the
13 : : * License.
14 : : *
15 : : * The Initial Developer of the Original Code is
16 : : * Fridrich Strba <fridrich.strba@bluewin.ch>
17 : : * Thorsten Behrens <tbehrens@novell.com>
18 : : *
19 : : * Contributor(s):
20 : : *
21 : : * Alternatively, the contents of this file may be used under the terms of
22 : : * either the GNU General Public License Version 3 or later (the "GPLv3+"), or
23 : : * the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"),
24 : : * in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
25 : : * instead of those above.
26 : : */
27 : : #include "b2dellipse.hxx"
28 : :
29 : : #include <basegfx/point/b2dpoint.hxx>
30 : : #include <basegfx/matrix/b2dhommatrix.hxx>
31 : :
32 : : namespace basegfx
33 : : {
34 : 0 : B2DEllipse::B2DEllipse(const basegfx::B2DPoint& rCenter, const basegfx::B2DTuple& rRadius)
35 : 0 : : maCenter(rCenter), maRadius(rRadius)
36 : : {
37 : 0 : }
38 : :
39 : 0 : B2DEllipse::~B2DEllipse()
40 : : {
41 : 0 : }
42 : :
43 : 0 : bool B2DEllipse::operator==(const B2DEllipse& rEllipse) const
44 : : {
45 [ # # ][ # # ]: 0 : return (maCenter == rEllipse.maCenter) && (maRadius == rEllipse.maRadius);
46 : : }
47 : :
48 : 0 : bool B2DEllipse::operator!=(const B2DEllipse& rEllipse) const
49 : : {
50 : 0 : return !(*this == rEllipse);
51 : : }
52 : :
53 : 0 : basegfx::B2DPoint B2DEllipse::getB2DEllipseCenter() const
54 : : {
55 : 0 : return maCenter;
56 : : }
57 : :
58 : 0 : basegfx::B2DTuple B2DEllipse::getB2DEllipseRadius() const
59 : : {
60 : 0 : return maRadius;
61 : : }
62 : : } // end of namespace basegfx
63 : :
64 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|