23.0-cppcheck-TileMonitoring
Solve cppcheck defect (possible out-of-bounds array access) by bounds checking (throw if theres an error). Also small cleanup: use std::to_string, put math functions in std:: namespace, use M_PI
Solve cppcheck defect (possible out-of-bounds array access) by bounds checking (throw if theres an error). Also small cleanup: use std::to_string, put math functions in std:: namespace, use M_PI