Helios++
Helios software for LiDAR simulations
pyhelios::PyHeliosUtils Class Reference

Static Public Member Functions

static size_t handlePythonIndex (long _index, size_t n)
 Translate received index from python, where negative values have a special meaning (i.e. index -1 means index n-1), to C++ index domain. More...
 

Member Function Documentation

◆ handlePythonIndex()

static size_t pyhelios::PyHeliosUtils::handlePythonIndex ( long  _index,
size_t  n 
)
inlinestatic

Translate received index from python, where negative values have a special meaning (i.e. index -1 means index n-1), to C++ index domain.

Parameters
_indexThe index itself
nThe number of elements so n-1 would be the last valid index

The documentation for this class was generated from the following file: