MCPcopy Create free account
hub / github.com/ISEE-Technology/CamVox / SO2FromNormal

Function SO2FromNormal

isee-preprocessing/include/sophus/geometry.hpp:26–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24//
25template <class T>
26SO2<T> SO2FromNormal(Vector2<T> normal_foo) {
27 SOPHUS_ENSURE(normal_foo.squaredNorm() > Constants<T>::epsilon(), "%",
28 normal_foo.transpose());
29 normal_foo.normalize();
30 return SO2<T>(normal_foo.y(), -normal_foo.x());
31}
32
33// Takes in a rotation ``R_foo_plane`` and returns the corresponding plane
34// normal along the z-axis

Callers 1

SE2FromLineFunction · 0.85

Calls 3

transposeMethod · 0.80
xMethod · 0.80
normalizeMethod · 0.45

Tested by

no test coverage detected