76
76
(double bbMinR, double bbMinY, double bbMinPhi,
77
77
double bbMaxR, double bbMaxY, double bbMaxPhi) {
78
78
if (bbMinR > bbMaxR) {
79
throw(Squeal(Squeal::recoverable,
79
throw(Exception(Exception::recoverable,
80
80
"Bounding box minimum radius was greater than maximum radius",
81
81
"SectorField::SetPolarBoundingBox"));
84
throw(Squeal(Squeal::recoverable,
84
throw(Exception(Exception::recoverable,
85
85
"Bounding box radius must be positive",
86
86
"SectorField::SetPolarBoundingBox"));
88
88
if (bbMinY > bbMaxY) {
89
throw(Squeal(Squeal::recoverable,
89
throw(Exception(Exception::recoverable,
90
90
"Bounding box minimum y was greater than maximum y",
91
91
"SectorField::SetPolarBoundingBox"));
93
93
if (bbMinY > bbMaxY) {
94
throw(Squeal(Squeal::recoverable,
94
throw(Exception(Exception::recoverable,
95
95
"Bounding box minimum angle was greater than maximum angle",
96
96
"SectorField::SetPolarBoundingBox"));
98
98
if (bbMinPhi < -2.*M_PI || bbMinPhi > 2.*M_PI ||
99
99
bbMaxPhi < -2.*M_PI || bbMaxPhi > 2.*M_PI) {
100
throw(Squeal(Squeal::recoverable,
100
throw(Exception(Exception::recoverable,
101
101
"Bounding box angles must be in range -2*M_PI < phi < 2*M_PI",
102
102
"SectorField::SetPolarBoundingBox"));