mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-12-06 09:11:07 +08:00
Added vector2.
This commit is contained in:
1 parent
ace2751715
commit
9b995e19f3
12 files changed
+160
-45
No files matched your search
@@ -0,0 +1,18 @@
|
||||
#include <assert.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include <matrix/math.hpp>
|
||||
|
||||
using namespace matrix;
|
||||
|
||||
template class Vector<float, 3>;
|
||||
|
||||
int main()
|
||||
{
|
||||
Vector2f a(1, 0);
|
||||
Vector2f b(0, 1);
|
||||
assert (fabs(a % b - 1.0f) < 1e-5);
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* vim: set et fenc=utf-8 ff=unix sts=0 sw=4 ts=4 : */
|
||||
Reference in new issue
Block a user