68 unsigned dx = (
Float)size[0] / abs(_sl.
_dt[0]);
85 unsigned dy = (
Float)size[1] / abs(_sl.
_dt[1]);
102 unsigned dx = (
Float)size[0] / abs(_sl.
_dt[0]);
103 unsigned dy = (
Float)size[1] / abs(_sl.
_dt[1]);
Position Get(const Size &size, const Position &offset={})
添加一个元素,并返回位置
Locator(const SL &sl=SL())
初始化
std::array< unsigned, N > CastU(const std::array< T, N > &a, bool show_log=true)
有符号转无符号,并且判断负数
void log_warn0(std::string_view str, const std::source_location location=std::source_location::current())
constexpr std::array< Position::value_type, N > toPosition(const std::array< T, N > &a)
void log_err0(std::string_view str, const std::source_location location=std::source_location::current())