removed useless inline keywords

This commit is contained in:
2026-06-15 10:39:13 +03:00
parent 63ea93dc1c
commit e82ec9c8ac
7 changed files with 69 additions and 69 deletions
@@ -8,10 +8,10 @@
namespace omath::frostbite_engine
{
[[nodiscard]]
inline constexpr Mat4X4 rotation_matrix(const ViewAngles& angles) noexcept;
constexpr Mat4X4 rotation_matrix(const ViewAngles& angles) noexcept;
[[nodiscard]]
inline constexpr Vector3<float> forward_vector(const ViewAngles& angles) noexcept
constexpr Vector3<float> forward_vector(const ViewAngles& angles) noexcept
{
const auto vec = rotation_matrix(angles) * mat_column_from_vector(k_abs_forward);
@@ -19,7 +19,7 @@ namespace omath::frostbite_engine
}
[[nodiscard]]
inline constexpr Vector3<float> right_vector(const ViewAngles& angles) noexcept
constexpr Vector3<float> right_vector(const ViewAngles& angles) noexcept
{
const auto vec = rotation_matrix(angles) * mat_column_from_vector(k_abs_right);
@@ -27,7 +27,7 @@ namespace omath::frostbite_engine
}
[[nodiscard]]
inline constexpr Vector3<float> up_vector(const ViewAngles& angles) noexcept
constexpr Vector3<float> up_vector(const ViewAngles& angles) noexcept
{
const auto vec = rotation_matrix(angles) * mat_column_from_vector(k_abs_up);
@@ -35,14 +35,14 @@ namespace omath::frostbite_engine
}
[[nodiscard]]
inline constexpr Mat4X4 calc_view_matrix(const ViewAngles& angles, const Vector3<float>& cam_origin) noexcept
constexpr Mat4X4 calc_view_matrix(const ViewAngles& angles, const Vector3<float>& cam_origin) noexcept
{
return mat_camera_view<float, MatStoreType::ROW_MAJOR>(forward_vector(angles), right_vector(angles),
up_vector(angles), cam_origin);
}
[[nodiscard]]
inline constexpr Mat4X4 rotation_matrix(const ViewAngles& angles) noexcept
constexpr Mat4X4 rotation_matrix(const ViewAngles& angles) noexcept
{
return mat_rotation_axis_z<float, MatStoreType::ROW_MAJOR>(angles.roll)
* mat_rotation_axis_y<float, MatStoreType::ROW_MAJOR>(angles.yaw)
@@ -50,19 +50,19 @@ namespace omath::frostbite_engine
}
[[nodiscard]]
inline constexpr Vector3<float> extract_origin(const Mat4X4& mat) noexcept
constexpr Vector3<float> extract_origin(const Mat4X4& mat) noexcept
{
return mat_extract_origin(mat);
}
[[nodiscard]]
inline constexpr Vector3<float> extract_scale(const Mat4X4& mat) noexcept
constexpr Vector3<float> extract_scale(const Mat4X4& mat) noexcept
{
return mat_extract_scale(mat);
}
[[nodiscard]]
inline constexpr ViewAngles extract_rotation_angles(const Mat4X4& mat) noexcept
constexpr ViewAngles extract_rotation_angles(const Mat4X4& mat) noexcept
{
const auto angles = mat_extract_rotation_zyx(mat);
return {
@@ -73,7 +73,7 @@ namespace omath::frostbite_engine
}
[[nodiscard]]
inline constexpr Mat4X4 calc_perspective_projection_matrix(
constexpr Mat4X4 calc_perspective_projection_matrix(
const float field_of_view, const float aspect_ratio, const float near_plane, const float far_plane,
const NDCDepthRange ndc_depth_range = NDCDepthRange::NEGATIVE_ONE_TO_ONE) noexcept
{