projection plane on local coordinates

This commit is contained in:
AndreaRigoni
2026-03-19 09:52:19 +00:00
parent ca2223e04c
commit c8eec163a6
3 changed files with 42 additions and 3 deletions

View File

@@ -6,8 +6,10 @@ namespace uLib {
MuonEvent DetectorChamber::ProjectMuonEvent(const MuonEvent &muon) const {
MuonEvent projectedMuon = muon;
HPoint3f P = m_ProjectionPlane.origin;
HVector3f N = m_ProjectionPlane.direction;
// Transform the local projection plane to world coordinates
HLine3f worldPlane = this->GetWorldProjectionPlane();
HPoint3f P = worldPlane.origin;
HVector3f N = worldPlane.direction;
HPoint3f X_in = muon.LineIn().origin;
HPoint3f X_out = muon.LineOut().origin;