Skip to content

Commit

Permalink
beautify
Browse files Browse the repository at this point in the history
  • Loading branch information
AJPfleger committed Oct 18, 2024
1 parent b3506aa commit 71eb6a1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 2 additions & 3 deletions Core/src/Geometry/CylinderVolumeBounds.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,15 +98,14 @@ std::vector<OrientedSurface> CylinderVolumeBounds::orientedSurfaces(
if (bevelMinZ != 0.) {
ActsScalar sy = 1 - 1 / std::cos(bevelMinZ);
transMinZ = transform * vMinZ *
Eigen::AngleAxis<ActsScalar>(-bevelMinZ, Vector3(1., 0., 0.)) *
AngleAxis3(-bevelMinZ, Vector3(1., 0., 0.)) *
Eigen::DiagonalMatrix<ActsScalar, 3>(1., 1. + sy, 1.);
} else {
transMinZ = transform * vMinZ;
}
if (bevelMaxZ != 0.) {
ActsScalar sy = 1 - 1 / std::cos(bevelMaxZ);
transMaxZ = transform * vMaxZ *
Eigen::AngleAxis<ActsScalar>(bevelMaxZ, Vector3(1., 0., 0.)) *
transMaxZ = transform * vMaxZ * AngleAxis3(bevelMaxZ, Vector3(1., 0., 0.)) *
Eigen::DiagonalMatrix<ActsScalar, 3>(1., 1. + sy, 1.);
} else {
transMaxZ = transform * vMaxZ;
Expand Down
3 changes: 1 addition & 2 deletions Core/src/Surfaces/detail/AnnulusBoundsHelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ Acts::detail::AnnulusBoundsHelper::create(const Transform3& transform,
Line2D lB = Line2D::Through(boundLines[1].first, boundLines[1].second);
Vector2 ix = lA.intersection(lB);

const Eigen::Translation<ActsScalar, 3> originTranslation(ix.x(), ix.y(),
0_scalar);
const Translation3 originTranslation(ix.x(), ix.y(), 0);
const Vector2 originShift = -ix;

// Update transform by prepending the origin shift translation
Expand Down

0 comments on commit 71eb6a1

Please sign in to comment.