simonech / ray-tracer-challenge-netcore

My attempt at implementing the The Ray Tracer Challenge book in .NET Core and C#
MIT License
26 stars 5 forks source link

Replace naive primitives with System.Numerics classes #3

Open simonech opened 5 years ago

simonech commented 5 years ago

System.Numerics provides Vector3 and Vector4 structures, as well as Matrixes, and all the possible operations. Those classes are also optimized to use SIMD operations in the CPU.

After the actual exercise of the book is complete, it might be a good idea to try and replace the primitives implemented from scratch in chapters 1-4 with these purpose mades classes