uncommented test

This commit is contained in:
2025-03-23 00:52:12 +03:00
parent 8977557a61
commit 74f2241bcf
2 changed files with 4 additions and 3 deletions

View File

@@ -119,11 +119,12 @@ namespace omath::projection
auto normalizedCords = WorldToViewPort(worldPosition);
if (!normalizedCords.has_value())
return normalizedCords;
return std::unexpected{normalizedCords.error()};
return NdcToScreenPosition(*normalizedCords);
}
[[nodiscard]] std::expected<Vector3<float>, Error> WorldToViewPort(const Vector3<float>& worldPosition) const
{
auto projected = GetViewProjectionMatrix() *