Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Handedness of Matrix4x4 camera methods

Tags:

c#

.net-4.6

.NET framework 4.6 instroduced new classes in System.Numerics namespace including Matrix4x4. It also introduced new static helper methods for 3D computer graphics like CreateLookAt or CreatePerspectiveFieldOfView.

Since DirectX and OpenGL differ in "handedness" (DirectX uses lef-handed coordinates while OpenGL right-handed coordinates), usually such APIs are available in both versions and annotated with either RH or LH to prevent confusion. That is not the case with System.Numerics, where we have only one version of each method.

My question is, what is the handedness of new System.Numerics methods?

like image 978
ghord Avatar asked Sep 28 '22 03:09

ghord


1 Answers

Strangely enough, all methods are using right-handed coordinates, contrary to Microsoft's own DirectX.

like image 129
ghord Avatar answered Oct 11 '22 17:10

ghord