mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-02 05:04:08 +08:00
Test: added check for Vector.norm_squared()
This commit is contained in:
parent
5130da206a
commit
d513c94f85
@ -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));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user