You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
605 B
C++
29 lines
605 B
C++
/*
|
|
* 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);
|
|
}
|