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"
14 class MOZ_STACK_CLASS SVGArcConverter
{
15 using Point
= mozilla::gfx::Point
;
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
);
23 int32_t mNumSegs
, mSegIndex
;
24 double mTheta
, mDelta
, mT
;
25 double mSinPhi
, mCosPhi
;
30 } // namespace mozilla
32 #endif // DOM_SVG_SVGARCCONVERTER_H_