mirror of
https://github.com/orange-cpp/omath.git
synced 2026-02-13 15:03:27 +00:00
Adds functionality to convert screen coordinates to world space, including handling for cases where the inverse view projection matrix is singular or when the world position is out of screen bounds. Also exposes Camera class to unit tests.
15 lines
237 B
C++
15 lines
237 B
C++
//
|
|
// Created by Vlad on 03.09.2024.
|
|
//
|
|
|
|
#pragma once
|
|
#include <cstdint>
|
|
|
|
namespace omath::projection
|
|
{
|
|
enum class Error : uint16_t
|
|
{
|
|
WORLD_POSITION_IS_OUT_OF_SCREEN_BOUNDS,
|
|
INV_VIEW_PROJ_MAT_DET_EQ_ZERO,
|
|
};
|
|
} |