GCC Code Coverage Report


Directory: ./
File: src/calib/placements.cc
Date: 2025-09-01 06:19:01
Exec Total Coverage
Lines: 0 8 0.0%
Functions: 0 1 0.0%
Branches: 0 0 -%

Line Branch Exec Source
1 #include "na64calib/placements.hh"
2
3 namespace na64dp {
4 namespace util {
5
6 Transformation
7 transformation_by(const calib::Placement & pl) {
8 // TODO: check validity of the placement (everything set)
9 // TODO: support for non-rectangular frames (affects basis vectors)
10 return Transformation( Vec3{{pl.center[0], pl.center[1], pl.center[2]}}
11 , Vec3{{pl.size[0], 0, 0}}
12 , Vec3{{0, pl.size[1], 0}}
13 , Vec3{{0, 0, pl.size[2]}}
14 , pl.rot[0], pl.rot[1], pl.rot[2]
15 , pl.rotationOrder
16 );
17 }
18
19 } // namespace ::na64dp::util
20 } // namespace na64dp
21
22