Adding code x2
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user