mirror of
https://github.com/orange-cpp/omath.git
synced 2026-02-13 15:03:27 +00:00
27 lines
880 B
C++
27 lines
880 B
C++
//
|
|
// Created by Vlad on 3/22/2025.
|
|
//
|
|
|
|
#pragma once
|
|
|
|
#include <omath/angle.hpp>
|
|
#include <omath/mat.hpp>
|
|
#include <omath/vector3.hpp>
|
|
#include <omath/view_angles.hpp>
|
|
|
|
namespace omath::unity_engine
|
|
{
|
|
constexpr Vector3<float> k_abs_up = {0, 1, 0};
|
|
constexpr Vector3<float> k_abs_right = {1, 0, 0};
|
|
constexpr Vector3<float> k_abs_forward = {0, 0, 1};
|
|
|
|
using Mat4X4 = Mat<4, 4, float, MatStoreType::ROW_MAJOR>;
|
|
using Mat3X3 = Mat<4, 4, float, MatStoreType::ROW_MAJOR>;
|
|
using Mat1X3 = Mat<1, 3, float, MatStoreType::ROW_MAJOR>;
|
|
using PitchAngle = Angle<float, -90.f, 90.f, AngleFlags::Clamped>;
|
|
using YawAngle = Angle<float, -180.f, 180.f, AngleFlags::Normalized>;
|
|
using RollAngle = Angle<float, -180.f, 180.f, AngleFlags::Normalized>;
|
|
|
|
using ViewAngles = omath::ViewAngles<PitchAngle, YawAngle, RollAngle>;
|
|
} // namespace omath::unity_engine
|