Skip to content

Commit

Permalink
clang format
Browse files Browse the repository at this point in the history
  • Loading branch information
morriscb committed Nov 17, 2021
1 parent f17e642 commit c2f5f27
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/pessimisticPatternMatcherUtils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,10 @@ int check_spoke(double cos_theta_src, double sin_theta_src, ndarray::Array<doubl
// The cosine tests the magnitude of the angle but not
// its direction. To do that we need to know the sine as well.
// This cross product calculation does that.
Eigen::Vector3d cross_ref = ndarray::asEigenMatrix(proj_ref_delta).head<3>().cross(ndarray::asEigenMatrix(proj_ref_ctr_delta).head<3>()) / geom_dist_ref;
Eigen::Vector3d cross_ref = ndarray::asEigenMatrix(proj_ref_delta)
.head<3>()
.cross(ndarray::asEigenMatrix(proj_ref_ctr_delta).head<3>()) /
geom_dist_ref;
double sin_theta_ref = cross_ref.dot(ndarray::asEigenMatrix(ref_ctr));
// Check the value of the cos again to make sure that it is not
// near zero.
Expand Down

0 comments on commit c2f5f27

Please sign in to comment.