Skip to content

Commit

Permalink
refactor: Use double for CylinderBounds::inside (acts-project#3210)
Browse files Browse the repository at this point in the history
Popped up here acts-project#3207 (comment)

I think this can be safely changed to a `double`
  • Loading branch information
andiwand authored and EleniXoch committed May 31, 2024
1 parent 29b4151 commit 315272d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Core/src/Surfaces/CylinderBounds.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ bool Acts::CylinderBounds::inside(const Vector2& lposition,
// \|______|/ r/phi
// -Z 0 Z
///////////////////////////////////
float localx =
double localx =
lposition[0] > radius ? 2 * radius - lposition[0] : lposition[0];
Vector2 shiftedlposition = shifted(lposition);
if ((std::fabs(shiftedlposition[0]) <= halfPhi &&
Expand Down

0 comments on commit 315272d

Please sign in to comment.