Base: modernize C++: use equals default

This commit is contained in:
wmayer
2023-08-20 14:54:51 +02:00
parent 44884ecaf7
commit db0f6534c3
12 changed files with 57 additions and 198 deletions

View File

@@ -36,24 +36,18 @@ Placement::Placement(const Base::Matrix4D& matrix)
fromMatrix(matrix);
}
Placement::Placement(const Placement& that)
{
this->_pos = that._pos;
this->_rot = that._rot;
}
Placement::Placement(const Vector3d& Pos, const Rotation &Rot)
: _pos(Pos)
, _rot(Rot)
{
this->_pos = Pos;
this->_rot = Rot;
}
Placement::Placement(const Vector3d& Pos, const Rotation &Rot, const Vector3d& Cnt)
: _rot(Rot)
{
Vector3d RotC = Cnt;
Rot.multVec(RotC, RotC);
this->_pos = Pos + Cnt - RotC;
this->_rot = Rot;
}
Placement Placement::fromDualQuaternion(DualQuat qq)
@@ -161,13 +155,6 @@ Placement Placement::operator*(const Placement & p) const
return plm;
}
Placement& Placement::operator = (const Placement& New)
{
this->_pos = New._pos;
this->_rot = New._rot;
return *this;
}
Placement Placement::pow(double t, bool shorten) const
{
return Placement::fromDualQuaternion(this->toDualQuaternion().pow(t, shorten));