workaround segfault in compiler on macos-clang-intel
[LibreOffice.git] / include / basegfx / polygon / WaveLine.hxx
blobb839c7519808cd4bfe7f0aff31c09d05c7776e4d
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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/.
9 */
11 #pragma once
13 #include <basegfx/basegfxdllapi.h>
14 #include <basegfx/polygon/b2dpolygon.hxx>
15 #include <basegfx/range/b2drectangle.hxx>
17 namespace basegfx
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
23 // the diagram below.
25 // *----Q---------------Q------------*
26 // | |
27 // |P-------P-------P-------P-------P|
28 // | |
29 // *------------Q---------------Q----*
31 // P is the point
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: */