3dpcp/.svn/pristine/45/45b9ffd1f05e288166137eb79657d4f34d0b4c73.svn-base

29 lines
605 B
Text
Raw Normal View History

2012-09-16 12:33:11 +00:00
/*
* rotation3d.cc
*
* Created on: Feb 16, 2012
* Author: Remus Claudiu Dumitru <r.dumitru@jacobs-university.de>
*/
#include "model/rotation3d.h"
model::Rotation3d::Rotation3d(const Rotation3d& other) {
this->x = other.x;
this->y = other.y;
this->z = other.z;
}
model::Rotation3d& model::Rotation3d::operator=(const Rotation3d& other) {
if (this != &other) {
this->x = other.x;
this->y = other.y;
this->z = other.z;
}
return *this;
}
model::Rotation3d model::Rotation3d::getInverse() {
return Rotation3d(-this->x, -this->y, -this->z);
}