| 24 | // |
| 25 | template <class T> |
| 26 | SO2<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 |
no test coverage detected