mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-15 17:47:36 +08:00
Vector3f: Add operator+/- for scalars
This commit is contained in:
committed by
Julian Kent
parent
a504b6e881
commit
158409abce
@@ -75,11 +75,21 @@ public:
|
||||
return Matrix31::operator+(other);
|
||||
}
|
||||
|
||||
inline Vector3 operator+(Type scalar) const
|
||||
{
|
||||
return Matrix31::operator+(scalar);
|
||||
}
|
||||
|
||||
inline Vector3 operator-(Vector3 other) const
|
||||
{
|
||||
return Matrix31::operator-(other);
|
||||
}
|
||||
|
||||
inline Vector3 operator-(Type scalar) const
|
||||
{
|
||||
return Matrix31::operator-(scalar);
|
||||
}
|
||||
|
||||
inline Vector3 operator-() const
|
||||
{
|
||||
return Matrix31::operator-();
|
||||
|
||||
Reference in New Issue
Block a user