The post discusses two methods to scale points along a specific direction in game development: using matrices and vector projections. It provides a detailed explanation of both methods with examples, including the necessary mathematical steps and considerations for each approach. The C++ code implementation and practical applications, like a Petzval lens effect in bokeh depth of field rendering, are also highlighted.

8m read timeFrom blog.demofox.org
Post cover image
Table of contents
Method 1 – MatricesMethod 2 – Vector ProjectionHigher Dimensions?

Sort: