20 double fWaveHeight = rRectangle.
getHeight();
22 double fHalfWaveLength = fWaveHeight + 1.0;
23 double fWaveAmplitude = fWaveHeight / 2.0;
25 double fLastX = rRectangle.
getMinX();
26 double fBaseY = rRectangle.
getMinY() + fWaveAmplitude;
27 double fDirection = 1.0;
31 constexpr double fHeightCompensation = 2.0;
35 for (
double fI = fHalfWaveLength; fI <= rRectangle.
getWidth(); fI += fHalfWaveLength)
39 fBaseY + fDirection * fWaveAmplitude * fHeightCompensation);
43 fLastX = aPoint.
getX();
#define BASEGFX_DLLPUBLIC
Base Point class with two double values.
void appendQuadraticBezierSegment(const basegfx::B2DPoint &rQuadControlPoint, const basegfx::B2DPoint &rPoint)
This is a shortcut to append a quadratic bezier segment.
void append(const basegfx::B2DPoint &rPoint, sal_uInt32 nCount)
A two-dimensional interval over doubles.
TYPE getWidth() const
return difference between upper and lower X value. returns 0 for empty sets.
TYPE getMinX() const
get lower bound of the set. returns arbitrary values for empty sets.
TYPE getMinY() const
get lower bound of the set. returns arbitrary values for empty sets.
TYPE getHeight() const
return difference between upper and lower Y value. returns 0 for empty sets.
TYPE getX() const
Get X-Coordinate of 2D Tuple.
BASEGFX_DLLPUBLIC B2DPolygon createWaveLinePolygon(basegfx::B2DRectangle const &rRectangle)