¶template <int DimsOut, int DimsIn>
box<DimsOut> box_cast(const box<DimsIn>& in)
template <int DimsOut, int DimsIn>
box<DimsOut> box_cast(const box<DimsIn>& in)
Description
Boxes can be cast between dimensionalities as long as no information is lost (i.e. a cast to a higher dimensionality is always round-trip safe).
Template Parameters
- int DimsOut
- int DimsIn
Parameters
- const box<DimsIn>& in