#include "SCT_SkiAux.h"
#include "SCT_MaterialManager.h"
#include "SCT_GeometryManager.h"
#include "SCT_Ski.h"
#include "SCT_Module.h"
#include "SCT_Bracket.h"
#include "SCT_Harness.h"
#include "SCT_SkiPowerTape.h"
#include "GeoModelKernel/GeoTubs.h"
#include "GeoModelKernel/GeoLogVol.h"
#include "GeoModelKernel/GeoPhysVol.h"
#include "GeoModelKernel/GeoNameTag.h"
#include "GeoModelKernel/GeoTransform.h"
#include "GeoModelKernel/GeoMaterial.h"
#include "GeoModelKernel/GeoDefinitions.h"
#include "GeoModelKernel/Units.h"
#include <cmath>
Go to the source code of this file.
|
| double | sqr (double x) |
| void | calcMinMaxRatioS (double xCenter, double yCenter, double xWidth, double yWidth, double &minRatio, double &maxRatio) |
◆ calcMinMaxRatioS()
| void calcMinMaxRatioS |
( |
double | xCenter, |
|
|
double | yCenter, |
|
|
double | xWidth, |
|
|
double | yWidth, |
|
|
double & | minRatio, |
|
|
double & | maxRatio ) |
Definition at line 208 of file SCT_SkiAux.cxx.
211{
212
213
214
215 double x = 0.5 * xWidth;
216 double y = 0.5 * yWidth;
217
218 double r00,r01,r10,r11;
219
220 r11 = (yCenter +
y) / (xCenter +
x);
221 r00 = (yCenter -
y) / (xCenter -
x);
222 r10 = (yCenter +
y) / (xCenter -
x);
223 r01 = (yCenter -
y) / (xCenter +
x);
224
225 minRatio = std::min(r11 , std::min(r00, std::min(r10, r01)));
226 maxRatio = std::max(r11 , std::max(r00, std::max(r10, r01)));
227
228}
◆ sqr()