mirror of
https://github.com/orange-cpp/omath.git
synced 2026-02-13 07:03:25 +00:00
27 lines
772 B
C++
27 lines
772 B
C++
//
|
|
// Created by Orange on 12/23/2024.
|
|
//
|
|
#pragma once
|
|
#include "omath/engines/opengl_engine/constants.hpp"
|
|
|
|
|
|
namespace omath::opengl_engine
|
|
{
|
|
[[nodiscard]]
|
|
Vector3<float> forward_vector(const ViewAngles& angles) noexcept;
|
|
|
|
[[nodiscard]]
|
|
Vector3<float> right_vector(const ViewAngles& angles) noexcept;
|
|
|
|
[[nodiscard]]
|
|
Vector3<float> up_vector(const ViewAngles& angles) noexcept;
|
|
|
|
[[nodiscard]] Mat4X4 calc_view_matrix(const ViewAngles& angles, const Vector3<float>& cam_origin) noexcept;
|
|
|
|
[[nodiscard]]
|
|
Mat4X4 rotation_matrix(const ViewAngles& angles) noexcept;
|
|
|
|
[[nodiscard]]
|
|
Mat4X4 calc_perspective_projection_matrix(float field_of_view, float aspect_ratio, float near, float far) noexcept;
|
|
} // namespace omath::opengl_engine
|