From 145ba8e157f79db64203db9684af2e6ed33af075 Mon Sep 17 00:00:00 2001 From: LaG1924 <12997935+LaG1924@users.noreply.github.com> Date: Sun, 3 Sep 2017 20:45:52 +0500 Subject: 2017-09-03 --- src/Vector.hpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/Vector.hpp') diff --git a/src/Vector.hpp b/src/Vector.hpp index c89154f..6389bbb 100644 --- a/src/Vector.hpp +++ b/src/Vector.hpp @@ -14,6 +14,11 @@ struct Vector3 { Vector3(const Vector3 &rhs) : x(rhs.x), y(rhs.y), z(rhs.z) {} + template + Vector3(const Vector3 &rhs) : x(rhs.x), y(rhs.y), z(rhs.z) {} + + Vector3(Vector3 &&rhs) = default; + ~Vector3() = default; double GetLength() const { return std::sqrt(std::pow(x, 2) + std::pow(y, 2) + std::pow(z, 2)); } -- cgit v1.2.3