Bug 1941128 - Turn off network.dns.native_https_query on Mac again
[gecko.git] / dom / svg / SVGArcConverter.h
blobf272d90654a8136c5dd5a1b1a09dc6f778bdb614
1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set ts=8 sts=2 et sw=2 tw=80: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #ifndef DOM_SVG_SVGARCCONVERTER_H_
8 #define DOM_SVG_SVGARCCONVERTER_H_
10 #include "mozilla/gfx/Point.h"
12 namespace mozilla {
14 class MOZ_STACK_CLASS SVGArcConverter {
15 using Point = mozilla::gfx::Point;
17 public:
18 SVGArcConverter(const Point& from, const Point& to, const Point& radii,
19 double angle, bool largeArcFlag, bool sweepFlag);
20 bool GetNextSegment(Point* cp1, Point* cp2, Point* to);
22 protected:
23 int32_t mNumSegs, mSegIndex;
24 double mTheta, mDelta, mT;
25 double mSinPhi, mCosPhi;
26 double mRx, mRy;
27 Point mFrom, mC;
30 } // namespace mozilla
32 #endif // DOM_SVG_SVGARCCONVERTER_H_