mirror of
https://github.com/orange-cpp/omath.git
synced 2026-02-13 07:03:25 +00:00
25 lines
846 B
C++
25 lines
846 B
C++
//
|
|
// Created by Orange on 12/23/2024.
|
|
//
|
|
#pragma once
|
|
|
|
#include <omath/Vector3.hpp>
|
|
#include <omath/Mat.hpp>
|
|
#include <omath/Angle.hpp>
|
|
#include <omath/view_angles.hpp>
|
|
|
|
namespace omath::opengl_engine
|
|
{
|
|
constexpr Vector3<float> kAbsUp = {0, 1, 0};
|
|
constexpr Vector3<float> kAbsRight = {1, 0, 0};
|
|
constexpr Vector3<float> kAbsForward = {0, 0, -1};
|
|
|
|
using Mat4x4 = Mat<4, 4, float, MatStoreType::COLUMN_MAJOR>;
|
|
using Mat3x3 = Mat<4, 4, float, MatStoreType::COLUMN_MAJOR>;
|
|
using Mat1x3 = Mat<1, 3, float, MatStoreType::COLUMN_MAJOR>;
|
|
using PitchAngle = Angle<float, 0.f, 180.f, AngleFlags::Clamped>;
|
|
using YawAngle = Angle<float, 0.f, 360.f, AngleFlags::Normalized>;
|
|
using RollAngle = Angle<float, 0.f, 360.f, AngleFlags::Normalized>;
|
|
|
|
using ViewAngles = omath::ViewAngles<PitchAngle, YawAngle, RollAngle>;
|
|
} |