update credits
[LibreOffice.git] / vcl / source / filter / sgvspln.hxx
blob93c08ab62883c27bb9955cc7ddd5256f01234d8c
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 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef _SGVSPLN_HXX
21 #define _SGVSPLN_HXX
23 /*************************************************************************
25 |* CalcSpline()
27 |* Beschreibung Berechnet die Koeffizienten eines parametrischen
28 |* nat�rlichen oder periodischen kubischen
29 |* Polynomsplines. Die Eckpunkte des šbergebenen
30 |* Polygons werden als St�tzstellen angenommen.
31 |* n liefert die Anzahl der Teilpolynome.
32 |* Ist die Berechnung fehlerfrei verlaufen, so
33 |* liefert die Funktion sal_True. Nur in diesem Fall
34 |* ist Speicher f�r die Koeffizientenarrays
35 |* allokiert, der dann sp„ter vom Aufrufer mittels
36 |* delete freizugeben ist.
38 *************************************************************************/
40 sal_Bool CalcSpline(Polygon& rPoly, sal_Bool Periodic, sal_uInt16& n,
41 double*& ax, double*& ay, double*& bx, double*& by,
42 double*& cx, double*& cy, double*& dx, double*& dy, double*& T);
44 /*************************************************************************
46 |* Poly2Spline()
48 |* Beschreibung Konvertiert einen parametrichen kubischen
49 |* Polynomspline Spline (nat�rlich oder periodisch)
50 |* in ein angen„hertes Polygon.
51 |* Die Funktion liefert sal_False, wenn ein Fehler bei
52 |* der Koeffizientenberechnung aufgetreten ist oder
53 |* das Polygon zu gro?wird (>PolyMax=16380). Im 1.
54 |* Fall hat das Polygon 0, im 2. Fall PolyMax Punkte.
55 |* Um Koordinaten�berl„ufe zu vermeiden werden diese
56 |* auf +/-32000 begrenzt.
58 *************************************************************************/
59 sal_Bool Spline2Poly(Polygon& rSpln, sal_Bool Periodic, Polygon& rPoly);
61 #endif //_SGVSPLN_HXX
63 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */