ABRG-Models / morphologica

A library of supporting code for numerical modelling (JSON config, HDF5 data, Modern OpenGL visualization)
https://abrg-models.github.io/morphologica/
Apache License 2.0
255 stars 29 forks source link

Make morph::vec constexpr capable #188

Closed sebjameswml closed 4 months ago

sebjameswml commented 4 months ago

morph::vec is very useful for doing maths in constexpr functions. This issue is to make relevant member functions in vec constexpr capable. A small number of functions are not eligible (the ones that allow you to randomize the vec's content at runtime).