rebranding moment

This commit is contained in:
2024-07-09 19:29:22 +03:00
parent 528b8a0ca9
commit 13e7adc8f6
24 changed files with 105 additions and 70 deletions

View File

@@ -4,7 +4,7 @@
#pragma once
namespace uml
namespace omath
{
class Vector3 {
public:
@@ -57,12 +57,18 @@ namespace uml
{
return *reinterpret_cast<type*>(this);
}
[[nodiscard]] Vector3 Cross(const Vector3 &v) const;
[[nodiscard]] static Vector3 CreateVelocity(float pitch, float yaw, float speed);
[[nodiscard]] float Sum() const;
[[nodiscard]] float Sum2D() const;
[[nodiscard]] Vector3 ViewAngleTo(const Vector3& other) const;
[[nodiscard]] static Vector3 ForwardVector(float pitch, float yaw);
[[nodiscard]] static Vector3 RightVector(float pitch, float yaw, float roll);
[[nodiscard]] static Vector3 UpVector(float pitch, float yaw, float roll);
[[nodiscard]]
Vector3 Normalized() const;
};

View File

@@ -3,9 +3,9 @@
//
#pragma once
#include <uml/Vector3.h>
#include <omath/Vector3.h>
namespace uml
namespace omath
{
class Vector4 : public Vector3
{

11
include/omath/angles.h Normal file
View File

@@ -0,0 +1,11 @@
//
// Created by vlad on 11/6/23.
//
#pragma once
namespace omath::angles
{
[[nodiscard]] constexpr float RadiansToDegrees(float rads);
[[nodiscard]] constexpr float DegreesToRadians(float degrees);
}

View File

@@ -4,12 +4,12 @@
#pragma once
#include "uml/Vector3.h"
#include "omath/Vector3.h"
#include <cstdint>
#include "uml/Vector4.h"
#include "omath/Vector4.h"
namespace uml::color
namespace omath::color
{
struct HSV
{

View File

@@ -4,7 +4,7 @@
#include <string>
namespace uml
namespace omath
{
class Vector3;

View File

@@ -5,12 +5,12 @@
#pragma once
#include <optional>
#include "uml/Vector3.h"
#include "uml/prediction/Projectile.h"
#include "uml/prediction/Target.h"
#include "omath/Vector3.h"
#include "omath/prediction/Projectile.h"
#include "omath/prediction/Target.h"
namespace uml::prediction
namespace omath::prediction
{
class Engine
{

View File

@@ -3,10 +3,10 @@
//
#pragma once
#include "uml/Vector3.h"
#include "omath/Vector3.h"
namespace uml::prediction
namespace omath::prediction
{
class Projectile final
{

View File

@@ -3,10 +3,10 @@
//
#pragma once
#include "uml/Vector3.h"
#include "omath/Vector3.h"
namespace uml::prediction
namespace omath::prediction
{
class Target final
{

View File

@@ -1,11 +0,0 @@
//
// Created by vlad on 11/6/23.
//
#pragma once
namespace uml::angles
{
[[nodiscard]] float RadiansToDegrees(float rads);
[[nodiscard]] float DegreesToRadians(float degrees);
}