Commit 644a7dd42ce3545eee4d7aba3d022f1d0a9657f0
Committed by
Jürgen Knödlseder
1 parent
6aadb3f3
Adapted posang_deg(double) method to make use of posang(double) method.
Showing
1 changed file
with
1 additions
and
4 deletions
src/sky/GSkyRegionRect.cpp
| ... | ... | @@ -281,10 +281,7 @@ void GSkyRegionRect::posang(const double& posang) |
| 281 | 281 | void GSkyRegionRect::posang_deg(const double& posang) |
| 282 | 282 | { |
| 283 | 283 | // Set the position angle |
| 284 | - m_posang = posang * gammalib::deg2rad; | |
| 285 | - | |
| 286 | - // Update the cache | |
| 287 | - update_cache(); | |
| 284 | + this->posang(posang * gammalib::deg2rad); | |
| 288 | 285 | |
| 289 | 286 | // Return |
| 290 | 287 | return; | ... | ... |