Bottom of the sea
Read post

Scaling Points In a Specific Direction

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.

    #algorithms#c++#game-development#graphics-programming#math
Oct 16, 2024•8m read time•From blog.demofox.org
Post cover image
Table of contents
Method 1 – MatricesMethod 2 – Vector ProjectionHigher Dimensions?
17 Impressions
Bottom of the sea's image
Bottom of the sea

DemoFox's resource offers insights, tutorials, and resources for graphics programmers and game devel...

0 Followers

•

17 Upvotes

Would you recommend this post?

Copy link
WhatsApp
Facebook
X
New Squad
  • © 2026 Daily Dev Ltd.
  • Guidelines
  • Explore
  • Tags
  • Sources
  • Squads
  • Leaderboard