1
0
forked from josh/j3ml

Adding code x2

This commit is contained in:
2023-12-26 21:29:05 -06:00
parent d9bd070fd1
commit f90f1cf40b
25 changed files with 188 additions and 88 deletions

View File

@@ -1,6 +1,7 @@
#include <J3ML/LinearAlgebra/Vector3.h>
#include <algorithm>
#include <cassert>
#include <cmath>
namespace LinearAlgebra {
@@ -55,18 +56,11 @@ namespace LinearAlgebra {
Vector3::Vector3(): x(0), y(0), z(0)
{}
Vector3::Vector3(): x(0), y(0), z(0) {}
Vector3::Vector3(float X, float Y, float Z): x(X), y(Y), z(Z)
{}
Vector3::Vector3(float X, float Y, float Z): x(X), y(Y), z(Z) {}
Vector3::Vector3(const Vector3& rhs)
{
this->x = rhs.x;
this->y = rhs.y;
this->z = rhs.z;
}
Vector3::Vector3(const Vector3& rhs) : x(rhs.x), y(rhs.y), z(rhs.z) {}
Vector3& Vector3::operator=(const Vector3& rhs)
{