mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-21 16:18:29 -04:00
AP_Math: Add Vector2f+z initialiser for Vector3f
This commit is contained in:
parent
ad2aca4900
commit
f95cb16434
@ -85,6 +85,12 @@ public:
|
||||
, y(y0)
|
||||
, z(z0) {}
|
||||
|
||||
//Create a Vector3 from a Vector2 with z
|
||||
constexpr Vector3<T>(const Vector2<T> &v0, const T z0)
|
||||
: x(v0.x)
|
||||
, y(v0.y)
|
||||
, z(z0) {}
|
||||
|
||||
// test for equality
|
||||
bool operator ==(const Vector3<T> &v) const;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user