Skip to content

Commit

Permalink
Use auto
Browse files Browse the repository at this point in the history
  • Loading branch information
dsieger committed Apr 13, 2022
1 parent 0776141 commit 3b41e23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pmp/algorithms/DifferentialGeometry.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ namespace pmp {
//! clamp cotangent values as if angles are in [3, 177]
inline Scalar clamp_cot(const Scalar v)
{
const Scalar bound = Scalar(19.1); // 3 degrees
const auto bound = Scalar(19.1); // 3 degrees
return (v < -bound ? -bound : (v > bound ? bound : v));
}

//! clamp cosine values as if angles are in [3, 177]
inline Scalar clamp_cos(const Scalar v)
{
const Scalar bound = Scalar(0.9986); // 3 degrees
const auto bound = Scalar(0.9986); // 3 degrees
return (v < -bound ? -bound : (v > bound ? bound : v));
}

Expand Down

0 comments on commit 3b41e23

Please sign in to comment.