Added copy constructor to PowercaledCoordinate class

This commit is contained in:
Alexander Bock
2014-05-13 22:05:34 +02:00
parent 3520bd121e
commit 2bfbdbb905
2 changed files with 6 additions and 0 deletions

View File

@@ -44,6 +44,7 @@ public:
PowerScaledCoordinate();
PowerScaledCoordinate(PowerScaledCoordinate&& rhs);
PowerScaledCoordinate(const PowerScaledCoordinate& rhs);
// Sets the power scaled coordinates directly
PowerScaledCoordinate(glm::vec4 v);

View File

@@ -63,6 +63,11 @@ PowerScaledCoordinate::PowerScaledCoordinate(float f1, float f2, float f3, float
_vec = glm::vec4(f1, f2, f3, f4);
}
PowerScaledCoordinate::PowerScaledCoordinate(const PowerScaledCoordinate& rhs) {
_vec = rhs._vec;
}
PowerScaledCoordinate
PowerScaledCoordinate::CreatePowerScaledCoordinate(double d1, double d2, double d3)
{