** This is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: scanner.cpp,v 1.33 2001/03/01 07:30:49 kevin Exp $
+** $Id: scanner.cpp,v 1.34 2001/03/10 23:14:16 kevin Exp $
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License (version 2) as
m_detInc = m_detLen / (m_nDet - 1); // center detector = (nDet/2)
dDetectorArrayEndOffset = m_detInc;
}
+ // adjust for center-detector length
double dA1 = acos ((m_dScanDiameter / 2) / m_dCenterDetectorLength);
double dAngularScale = 2 * (HALFPI + dAngle - dA1) / m_detLen;
+
m_dAngularDetLen = dAngularScale * (m_detLen + dDetectorArrayEndOffset);
m_dAngularDetIncrement = dAngularScale * m_detInc;
m_initPos.dAngularDet = -m_dAngularDetLen / 2;