MCPcopy Create free account
hub / github.com/alandefreitas/matplotplusplus / get_chunk_limits

Method get_chunk_limits

source/matplot/util/contourc.cpp:986–998  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

984 }
985
986 void QuadContourGenerator::get_chunk_limits(long ijchunk, long &ichunk,
987 long &jchunk, long &istart,
988 long &iend, long &jstart,
989 long &jend) {
990 assert(ijchunk >= 0 && ijchunk < _chunk_count &&
991 "ijchunk out of bounds");
992 ichunk = ijchunk % _nxchunk;
993 jchunk = ijchunk / _nxchunk;
994 istart = ichunk * _chunk_size;
995 iend = (ichunk == _nxchunk - 1 ? _nx : (ichunk + 1) * _chunk_size);
996 jstart = jchunk * _chunk_size;
997 jend = (jchunk == _nychunk - 1 ? _ny : (jchunk + 1) * _chunk_size);
998 }
999
1000 Edge QuadContourGenerator::get_corner_start_edge(
1001 long quad, unsigned int level_index) const {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected