mirror of
https://github.com/okalachev/flix.git
synced 2026-02-17 15:41:32 +00:00
Use FlixPeriph library for IMU, implement own IMU calibration
This commit is contained in:
@@ -44,6 +44,16 @@ public:
|
||||
return Vector(x - b.x, y - b.y, z - b.z);
|
||||
}
|
||||
|
||||
// Element-wise multiplication
|
||||
Vector operator * (const Vector& b) const {
|
||||
return Vector(x * b.x, y * b.y, z * b.z);
|
||||
}
|
||||
|
||||
// Element-wise division
|
||||
Vector operator / (const Vector& b) const {
|
||||
return Vector(x / b.x, y / b.y, z / b.z);
|
||||
}
|
||||
|
||||
inline bool operator == (const Vector& b) const {
|
||||
return x == b.x && y == b.y && z == b.z;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user