Update CameraIntrinsic

This commit is contained in:
Georg Hagen
2025-06-05 10:55:11 +02:00
parent 6564d74550
commit 735a9afbf2

View File

@@ -72,6 +72,9 @@ namespace OpenVulkano::Math
return cameraMatrix[1][0]; return cameraMatrix[1][0];
} }
[[nodiscard]] Math::Vector2f GetFocalLength() const { return { Fx(), Fy() }; }
[[nodiscard]] Math::Vector2f GetPrincipalPoint() const { return { Cx(), Cy() }; }
[[nodiscard]] float PixelAspectRatio() const [[nodiscard]] float PixelAspectRatio() const
{ {
return Fy() / Fx(); return Fy() / Fx();