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

This commit is contained in:
Madeline Busig 2025-02-18 04:23:30 -08:00
parent fa18c00018
commit 0a57c5e3ed

View File

@ -117,7 +117,7 @@ public:
/** /**
* Default constructor * Default constructor
*/ */
generator_t() : generator_t() noexcept :
m_leafs_cur(&m_leaf_buf1), m_leafs_cur(&m_leaf_buf1),
m_leafs_next(&m_leaf_buf2), m_leafs_next(&m_leaf_buf2),
m_axiom(0), m_axiom(0),
@ -274,13 +274,13 @@ public:
* *
* @param position The initial position to use. * @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. * @brief Set the initial orientation the axiom is generated in.
* *
* @param orientation The initial orientation to use. Given in radians. * @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. * @brief Steps one generation in the fractal, generating a vector of markers.