| 41 | } |
| 42 | |
| 43 | std::optional<float> DistanceMap::get( size_t x, size_t y ) const |
| 44 | { |
| 45 | if ( isValid( x, y ) ) |
| 46 | return data_[ toIndex( { int( x ), int( y ) } ) ]; |
| 47 | else |
| 48 | return std::nullopt; |
| 49 | } |
| 50 | |
| 51 | std::optional<float> DistanceMap::get( size_t i ) const |
| 52 | { |
no outgoing calls
no test coverage detected