first impl.
`computeAnchor` & tests (needed for crop).
`computeRegionOrigin`, tests and `computeAnchor` factorization.