1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
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/.
13 #include <basegfx/basegfxdllapi.h>
14 #include <basegfx/polygon/b2dpolygon.hxx>
15 #include <basegfx/range/b2drectangle.hxx>
19 // Creates a polygon of a wave line in the input rectangle.
21 // The polygon is created with points at the center of the rectangle,
22 // and the quadratic control points at the upper and lower side. See
25 // *----Q---------------Q------------*
27 // |P-------P-------P-------P-------P|
29 // *------------Q---------------Q----*
32 // Q is the quadratic bezier control point
34 BASEGFX_DLLPUBLIC B2DPolygon
createWaveLinePolygon(basegfx::B2DRectangle
const& rRectangle
);
36 } // end of namespace basegfx
38 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */