You need to sign in before continuing.

Commit b0021b1b749db45f35f17fa7c43bcc64c2e47490

Authored by Andreas Specovius
Committed by Jürgen Knödlseder
1 parent 0d4379fc

Minor improvements in code documentation.

include/GSkyRegionRect.hpp
@@ -48,6 +48,9 @@ @@ -48,6 +48,9 @@
48 * The class holds several properties such as solid angle subtended by the 48 * The class holds several properties such as solid angle subtended by the
49 * region and computed through internal method compute_solid(). 49 * region and computed through internal method compute_solid().
50 * 50 *
  51 + * The position angle counts counter-clockwise from celestial North and is
  52 + * aligned with the height axis of the rectangle.
  53 + *
51 ***************************************************************************/ 54 ***************************************************************************/
52 class GSkyRegionRect : public GSkyRegion { 55 class GSkyRegionRect : public GSkyRegion {
53 56
src/sky/GSkyRegionRect.cpp
@@ -258,7 +258,8 @@ GSkyRegionRect* GSkyRegionRect::clone(void) const @@ -258,7 +258,8 @@ GSkyRegionRect* GSkyRegionRect::clone(void) const
258 * @param[in] posang Position angle [radians]. 258 * @param[in] posang Position angle [radians].
259 * 259 *
260 * Sets the position angle of the rectangular sky region. The position angle 260 * Sets the position angle of the rectangular sky region. The position angle
261 - * is counted counterclockwise from North. 261 + * is counted counterclockwise from cel. North and is aligned to the rect
  262 + * height.
262 ***************************************************************************/ 263 ***************************************************************************/
263 void GSkyRegionRect::posang(const double& posang) 264 void GSkyRegionRect::posang(const double& posang)
264 { 265 {
@@ -279,7 +280,8 @@ void GSkyRegionRect::posang(const double& posang) @@ -279,7 +280,8 @@ void GSkyRegionRect::posang(const double& posang)
279 * @param[in] posang Position angle [degrees]. 280 * @param[in] posang Position angle [degrees].
280 * 281 *
281 * Sets the position angle of the rectangular sky region. The position angle 282 * Sets the position angle of the rectangular sky region. The position angle
282 - * is counted counterclockwise from North. 283 + * is counted counterclockwise from cel. North and is aligned to the rect
  284 + * height.
283 ***************************************************************************/ 285 ***************************************************************************/
284 void GSkyRegionRect::posang_deg(const double& posang) 286 void GSkyRegionRect::posang_deg(const double& posang)
285 { 287 {
@@ -333,7 +335,7 @@ void GSkyRegionRect::width(const double& width) @@ -333,7 +335,7 @@ void GSkyRegionRect::width(const double& width)
333 * Height value is less than 0. 335 * Height value is less than 0.
334 * 336 *
335 * Sets the height of the rectangular sky region. Only non-negative radii are 337 * Sets the height of the rectangular sky region. Only non-negative radii are
336 - * allowed. 338 + * allowed. For zero posang, the height axis is pointing to celestial north.
337 ***************************************************************************/ 339 ***************************************************************************/
338 void GSkyRegionRect::height(const double& height) 340 void GSkyRegionRect::height(const double& height)
339 { 341 {