isidorostsa / RayTrayCpp2

A RayTracing Implementation written in C++2
GNU General Public License v3.0
4 stars 0 forks source link

Should type safe numerics be used in the camera constructor? #2

Open isidorostsa opened 5 months ago

isidorostsa commented 5 months ago

Right now the camera constructor takes entirely too many numeric parameters that are very easy to mix up. Some possible solutions to this are:

  1. grouping the input parameters in structs
  2. Use foonathan's type_safe library to wrap them
isidorostsa commented 1 month ago
  1. Use MP Units