http://sidneys77crlfslcr7zmj3msmxchgnxhrxlp3p3kbaswo7twchjnicid.onion/programming/2022/03/23/raytracing.html
. // Struct to describe a 3D floating point vector. struct vf3d { float x , y , z ; // Default constructor. vf3d () = default ; // Explicit constructor that initializes x, y, and z. constexpr vf3d ( float x , float y , float z ) : x ( x ), y ( y ), z ( z ) {} // Explicit constructor that initializes x, y, and z to the same value. constexpr vf3d ( float f ) : x ( f ), y ( f ), z ( f ) {} };...