Skip to content

Commit

Permalink
specify Eigen types
Browse files Browse the repository at this point in the history
  • Loading branch information
asalzburger committed Sep 2, 2024
1 parent eca169e commit fcda407
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Plugins/Detray/src/DetrayGeometryConverter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,9 @@ int findVolume(
detray::io::transform_payload Acts::DetrayGeometryConverter::convertTransform(
const Transform3& t) {
detray::io::transform_payload tfPayload;
auto translation = t.translation();
Vector3 translation = t.translation();
tfPayload.tr = {translation.x(), translation.y(), translation.z()};

const auto rotation = t.rotation().transpose();
RotationMatrix3 rotation = t.rotation().transpose();
tfPayload.rot = {rotation(0, 0), rotation(0, 1), rotation(0, 2),
rotation(1, 0), rotation(1, 1), rotation(1, 2),
rotation(2, 0), rotation(2, 1), rotation(2, 2)};
Expand Down

0 comments on commit fcda407

Please sign in to comment.