@@ -49,9 +49,9 @@ namespace viewshed
4949 */
5050 LoSNode ( const int &pointRow, const int &pointCol, const CellEvent *e, const double &cellSize );
5151
52- bool operator ==( const LoSNode &other );
53- bool operator !=( const LoSNode &other );
54- bool operator <( const LoSNode other );
52+ bool operator ==( const LoSNode &other ) const ;
53+ bool operator !=( const LoSNode &other ) const ;
54+ bool operator <( const LoSNode other ) const ;
5555
5656 /* *
5757 * @brief Extract value of ValueType at specified angle.
@@ -60,7 +60,7 @@ namespace viewshed
6060 * @param valueType
6161 * @return double
6262 */
63- double valueAtAngle ( const double &angle, ValueType valueType = ValueType::Elevation );
63+ double valueAtAngle ( const double &angle, ValueType valueType = ValueType::Elevation ) const ;
6464
6565 /* *
6666 * @brief Extract value of ValueType at specific cell event position.
@@ -69,31 +69,31 @@ namespace viewshed
6969 * @param valueType
7070 * @return double
7171 */
72- double value ( CellEventPositionType position, ValueType valueType = ValueType::Elevation );
72+ double value ( CellEventPositionType position, ValueType valueType = ValueType::Elevation ) const ;
7373
7474 /* *
7575 * @brief Shortcut call to obtain horizontal angle at center of raster cell that this LoSNode represents.
7676 *
7777 * @return double
7878 */
79- double centreAngle ();
79+ double centreAngle () const ;
8080
8181 /* *
8282 * @brief Shortcut call to obtain elevation angle at center of raster cell that this LoSNode represents.
8383 *
8484 * @return double
8585 */
86- double centreElevation ();
86+ double centreElevation () const ;
8787
8888 /* *
8989 * @brief Shortcut call to obtain distance angle at center of raster cell that this LoSNode represents.
9090 *
9191 * @return double
9292 */
93- double centreDistance ();
93+ double centreDistance () const ;
9494
95- double elevationAtAngle ( const double &angle );
95+ double elevationAtAngle ( const double &angle ) const ;
9696
97- double distanceAtAngle ( const double &angle );
97+ double distanceAtAngle ( const double &angle ) const ;
9898 };
9999} // namespace viewshed
0 commit comments