mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-29 00:30:35 +08:00
More features: longerThan, norm, copyTo and slice on a Slice (#97)
* Allow slices of slices, add longerThan to Vector/Slice
This commit is contained in:
@@ -35,6 +35,13 @@ int main()
|
||||
Vector<float, 5> v4(data1_sq);
|
||||
TEST(isEqual(v1, v4.sqrt()));
|
||||
|
||||
// longerThan
|
||||
Vector<float, 2> v5;
|
||||
v5(0) = 3;
|
||||
v5(1) = 4;
|
||||
TEST(v5.longerThan(4.99f));
|
||||
TEST(!v5.longerThan(5.f));
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user