mirror of
https://github.com/orange-cpp/omath.git
synced 2026-02-13 15:03:27 +00:00
rebranding moment
This commit is contained in:
@@ -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;
|
||||
};
|
||||
@@ -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
11
include/omath/angles.h
Normal 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);
|
||||
}
|
||||
@@ -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
|
||||
{
|
||||
@@ -4,7 +4,7 @@
|
||||
#include <string>
|
||||
|
||||
|
||||
namespace uml
|
||||
namespace omath
|
||||
{
|
||||
class Vector3;
|
||||
|
||||
@@ -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
|
||||
{
|
||||
@@ -3,10 +3,10 @@
|
||||
//
|
||||
|
||||
#pragma once
|
||||
#include "uml/Vector3.h"
|
||||
#include "omath/Vector3.h"
|
||||
|
||||
|
||||
namespace uml::prediction
|
||||
namespace omath::prediction
|
||||
{
|
||||
class Projectile final
|
||||
{
|
||||
@@ -3,10 +3,10 @@
|
||||
//
|
||||
|
||||
#pragma once
|
||||
#include "uml/Vector3.h"
|
||||
#include "omath/Vector3.h"
|
||||
|
||||
|
||||
namespace uml::prediction
|
||||
namespace omath::prediction
|
||||
{
|
||||
class Target final
|
||||
{
|
||||
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user