mirror of
https://github.com/orange-cpp/omath.git
synced 2026-02-13 07:03:25 +00:00
27 lines
774 B
C++
27 lines
774 B
C++
//
|
|
// Created by Vlad on 3/22/2025.
|
|
//
|
|
|
|
#pragma once
|
|
#include "omath/engines/frostbite_engine/constants.hpp"
|
|
|
|
namespace omath::frostbite_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::unity_engine
|