| 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 |