Fix camera intrinsics ProjectTo3D
This commit is contained in:
@@ -84,9 +84,9 @@ namespace openVulkanoCpp::Math
|
||||
{
|
||||
// TODO handle skew
|
||||
return {
|
||||
(pixelCoordinates.x - Cx()) * depth / Fx(),
|
||||
(pixelCoordinates.y - Cy()) * depth / Fy(),
|
||||
depth
|
||||
( pixelCoordinates.x - Cx()) * depth / Fx(),
|
||||
(-pixelCoordinates.y + Cy()) * depth / Fy(),
|
||||
-depth
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
#include <glm/gtc/quaternion.hpp>
|
||||
#include <glm/gtc/matrix_transform.hpp>
|
||||
#include <glm/gtx/quaternion.hpp>
|
||||
#include <glm/gtx/transform.hpp>
|
||||
|
||||
namespace openVulkanoCpp::Math
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user