Implement by-Reference operators

This commit is contained in:
2024-02-14 18:12:02 -05:00
parent efead577a5
commit fd2e3f894a
10 changed files with 191 additions and 12 deletions

View File

@@ -2,7 +2,6 @@
#include <J3ML/LinearAlgebra.h>
namespace J3ML::LinearAlgebra {
class Vector4 {
public:
@@ -16,6 +15,11 @@ namespace J3ML::LinearAlgebra {
Vector4(Vector4&& move) = default;
Vector4& operator=(const Vector4& rhs);
float* ptr()
{
return &x;
}
float GetX() const;
float GetY() const;
float GetZ() const;