Software Development

TIL: Tuples and Pattern Matching in C# switch Statements

TIL. abbreviation for today I learned
used in writing, for example on social media, before giving interesting new information

It may not happen all the time, but every now and then there are cases where a certain outcome is expected due to two or more variables. For example the help or validation text for variable min and max values. Until now I have solved this with these monstrous “if – else if” nestings:

Read More »TIL: Tuples and Pattern Matching in C# switch Statements

Ray-Sphere Intersection – From Math to Code

  • by
In this article I derive a ray-sphere intersection algorithm from it’s math. While certain knowledge in mathematics and programming will be assumed, I am trying to show all the steps of the process.
Read More »Ray-Sphere Intersection – From Math to Code