Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
15
template<typename T>
16
Matrix<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.
22
template<typename T>
Callers
1
transformations
Function · 0.85
Calls
2
cos
Function · 0.50
sin
Function · 0.50
Tested by
no test coverage detected