Remove the trivial operator= implementations, the default shallow copy is fine.

git-svn-id: https://arducopter.googlecode.com/svn/trunk@537 f9c3cf11-9bcb-44bc-f272-b75c42450872
This commit is contained in:
DrZiplok@gmail.com 2010-09-22 16:32:38 +00:00
parent 646045ef44
commit 815e5f871a
3 changed files with 0 additions and 21 deletions

View File

@ -59,13 +59,6 @@ public:
bool operator != (const Matrix3<T> &m) bool operator != (const Matrix3<T> &m)
{ return (a!=m.a || b!=m.b || c!=m.c); } { return (a!=m.a || b!=m.b || c!=m.c); }
// set to value
Matrix3<T> &operator = (const Matrix3<T> &m)
{
a= m.a; b= m.b; c= m.c;
return *this;
}
// negation // negation
const Matrix3<T> operator - (void) const const Matrix3<T> operator - (void) const
{ return Matrix3<T>(-a,-b,-c); } { return Matrix3<T>(-a,-b,-c); }

View File

@ -57,13 +57,6 @@ struct Vector2
bool operator!=(const Vector2<T> &v) bool operator!=(const Vector2<T> &v)
{ return (x!=v.x || y!=v.y); } { return (x!=v.x || y!=v.y); }
// set to value
Vector2<T> &operator =(const Vector2<T> &v)
{
x= v.x; y= v.y;
return *this;
}
// negation // negation
const Vector2<T> operator -(void) const const Vector2<T> operator -(void) const
{ return Vector2<T>(-x, -y); } { return Vector2<T>(-x, -y); }

View File

@ -67,13 +67,6 @@ public:
bool operator!=(const Vector3<T> &v) bool operator!=(const Vector3<T> &v)
{ return (x!=v.x || y!=v.y || z!=v.z); } { return (x!=v.x || y!=v.y || z!=v.z); }
// set to value
Vector3<T> &operator =(const Vector3<T> &v)
{
x= v.x; y= v.y; z= v.z;
return *this;
}
// negation // negation
const Vector3<T> operator -(void) const const Vector3<T> operator -(void) const
{ return Vector3<T>(-x,-y,-z); } { return Vector3<T>(-x,-y,-z); }