mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-23 15:37:34 +08:00
Test: added check for Vector.norm_squared()
This commit is contained in:
@@ -18,6 +18,7 @@ int main()
|
||||
|
||||
// norm, dot product
|
||||
TEST(isEqualF(v1.norm(), 7.416198487095663f));
|
||||
TEST(isEqualF(v1.norm_squared(), v1.norm() * v1.norm()));
|
||||
TEST(isEqualF(v1.norm(), v1.length()));
|
||||
TEST(isEqualF(v1.dot(v2), 130.0f));
|
||||
TEST(isEqualF(v1.dot(v2), v1 * v2));
|
||||
|
||||
Reference in New Issue
Block a user