Make some fractal::generator functions noexcept (simple sets, etc)

This commit is contained in:
Myles Busig 2025-02-18 04:23:30 -08:00
parent 5f35bea64c
commit 087aa2c714

View File

@ -117,7 +117,7 @@ public:
/**
* Default constructor
*/
generator_t() :
generator_t() noexcept :
m_leafs_cur(&m_leaf_buf1),
m_leafs_next(&m_leaf_buf2),
m_axiom(0),
@ -274,13 +274,13 @@ public:
*
* @param position The initial position to use.
*/
void set_initial_position(mtl::vec2 position);
void set_initial_position(mtl::vec2 position) noexcept;
/**
* @brief Set the initial orientation the axiom is generated in.
*
* @param orientation The initial orientation to use. Given in radians.
*/
void set_initial_orientation(mtl::fixed orientation);
void set_initial_orientation(mtl::fixed orientation) noexcept;
/**
* @brief Steps one generation in the fractal, generating a vector of markers.