-
#include "tensorstore/index_interval.h"
-
Result<IndexInterval>
tensorstore::GetAffineTransformDomain(IndexInterval interval,
Index offset,
Index divisor); Computes the largest possible domain such that the affine-transformed range is contained within
interval
.Specifically, subtracts
offset
from the lower and upper bounds ofinterval
and then divides the bounds bydivisor
, rounding towards the interior of the interval.A bound of
-kInfIndex
orkInfIndex
is not affected by subtraction or division.