Skip to content
Snippets Groups Projects
Commit 1ea10721 authored by Simon Ottenhaus's avatar Simon Ottenhaus
Browse files

Update orthogonal_vector.h: add abs

parent 68d966dc
No related branches found
No related tags found
No related merge requests found
......@@ -15,7 +15,7 @@ namespace simox::math
vector /= len;
const Eigen::Matrix<Scalar, 3, 1> v2 =
(vector(0) < 0.5f) ?
(std::abs(vector(0)) < 0.5f) ?
Eigen::Matrix<Scalar, 3, 1>::UnitX() :
Eigen::Matrix<Scalar, 3, 1>::UnitY();
return vector.cross(v2).normalized();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment