40 float backgroundWidth;
41 float backgroundHeight;
56 : params(params), dims(dims), t(0.0f) {}
64 void step(
const float scale = 1.0f);
70 inline float getX()
const {
78 inline float getY()
const {
86 void change(
const LissajousDims dims);
Provides a view of a Lissajous curve.
Definition: lissajous.hpp:19
void change(const LissajousDims dims)
Changes the viewport and background dimensions.
Definition: lissajous.cpp:14
LissajousView(const LissajousInit params, const LissajousDims dims)
Constructs a Lissajous curve view.
Definition: lissajous.hpp:55
float getY() const
Get the y coordinate of the Lissajous view, the top-left corner of the viewport.
Definition: lissajous.hpp:78
void step(const float scale=1.0f)
Steps the Lissajous curve.
Definition: lissajous.cpp:5
float getX() const
Get the x coordinate of the Lissajous view, the top-left corner of the viewport.
Definition: lissajous.hpp:70
Dimensions to set up the curve view.
Definition: lissajous.hpp:37
Initial parameters for a Lissajous curve.
Definition: lissajous.hpp:26