MCPcopy Create free account
hub / github.com/PX4/eigen / angleToVec

Function angleToVec

test/geo_transformations.cpp:16–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14
15template<typename T>
16Matrix<T,2,1> angleToVec(T a)
17{
18 return Matrix<T,2,1>(std::cos(a), std::sin(a));
19}
20
21// This permits to workaround a bug in clang/llvm code generation.
22template<typename T>

Callers 1

transformationsFunction · 0.85

Calls 2

cosFunction · 0.50
sinFunction · 0.50

Tested by

no test coverage detected