added some methods

This commit is contained in:
2024-05-07 02:12:16 +03:00
parent 4827f80257
commit 8765f83434
3 changed files with 16 additions and 5 deletions

View File

@@ -58,7 +58,7 @@ namespace uml
{
return *reinterpret_cast<type*>(this);
}
[[nodiscard]] static Vector3 CreateVelocity(const Vector3& angles, const float length);
[[nodiscard]] static Vector3 CreateVelocity(const Vector3& angles, float length);
[[nodiscard]] float Sum() const;
[[nodiscard]] float Sum2D() const;
[[nodiscard]] Vector3 ViewAngleTo(const Vector3& other) const;

View File

@@ -17,7 +17,7 @@ namespace uml
matrix(const matrix &other);
matrix(size_t rows, size_t columns, float *pRaw);
matrix(size_t rows, size_t columns, const float *pRaw);
matrix(matrix &&other) noexcept;
@@ -30,7 +30,7 @@ namespace uml
float &at(size_t iRow, size_t iCol);
float get_sum();
void set_from_raw(const float* pRawMatrix);
matrix transpose();
void set(float val);
@@ -56,7 +56,7 @@ namespace uml
[[nodiscard]] float alg_complement(size_t i, size_t j) const;
[[nodiscard]] float det() const;
[[nodiscard]] const float* raw() const;
matrix &operator=(const matrix &other);
matrix &operator=(matrix &&other) noexcept;