/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/** * Utility class to provide scaling defined in a keySplines element.
*/ class SMILKeySpline { public:
constexpr SMILKeySpline() : mX1(0), mY1(0), mX2(0), mY2(0) { /* caller must call Init later */\
}
/** * Creates a new key spline control point description. * * aX1, etc. are the x1, y1, x2, y2 cubic Bezier control points as defined * by SMILANIM 3.2.3. They must each be in the range 0.0 <= x <= 1.0
*/
SMILKeySpline(double aX1, double aY1, double aX2, double aY2)
: mX1(0), mY1(0), mX2(0), mY2(0) {
Init(aX1, aY1, aX2, aY2);
}
/** * Gets the output (y) value for an input (x). * * @param aX The input x value. A floating-point number between 0 and * 1 (inclusive).
*/ double GetSplineValue(double aX) const;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.