Transform Vector3 into Vector2 with PerspectiveFieldOfView Matrix

by NetherGranite   Last Updated April 30, 2019 14:13 PM

If I understand correctly, Matrix.CreatePerspectiveFieldOfView(…) creates a Matrix that projects a Vector3 onto a 2D plane, which means that the Matrix transforms it into a Vector2. How do I actually perform this transformation and get that Vector2?

Vector3.Transform(…) and Vector2.Transform(…) return a Vector3 and Vector2 respectively, so I assume they aren't the right methods to use.

I've been searching for an answer for about two hours now, so I apologize if the answer is obvious (which I feel like it will be) and it seems like I just lazily went straight to StackExchange.



Related Questions


From screen space to world space for a 2D game

Updated August 03, 2018 15:13 PM



Rotate an objects velocity

Updated June 02, 2015 12:05 PM

Extracting positions from a matrix

Updated September 18, 2016 08:07 AM