mirror of
https://github.com/orange-cpp/omath.git
synced 2026-02-13 07:03:25 +00:00
25 lines
593 B
C++
25 lines
593 B
C++
//
|
|
// Created by Vlad on 3/17/2025.
|
|
//
|
|
|
|
#pragma once
|
|
#include "Constants.hpp"
|
|
|
|
namespace omath::iw_engine
|
|
{
|
|
[[nodiscard]]
|
|
Vector3<float> ForwardVector(const ViewAngles& angles);
|
|
|
|
[[nodiscard]]
|
|
Vector3<float> RightVector(const ViewAngles& angles);
|
|
|
|
[[nodiscard]]
|
|
Vector3<float> UpVector(const ViewAngles& angles);
|
|
|
|
[[nodiscard]] Mat4x4 CalcViewMatrix(const ViewAngles& angles, const Vector3<float>& cam_origin);
|
|
|
|
|
|
[[nodiscard]]
|
|
Mat4x4 CalcPerspectiveProjectionMatrix(float fieldOfView, float aspectRatio, float near, float far);
|
|
} // namespace omath::source
|