Seems like this simply rectangle rescale should work and return the exact coordinates of the transformed resulting rectangle (which should be Rectangle[{0.25, 0.25}, {0.75, 0.75}]
):
Normal@GeometricTransformation[Rectangle[{0, 0}, {1, 1}],
ScalingTransform[{.5, .5}, {.5, .5}]]
Now, this roundabout works:
TransformedRegion[DiscretizeGraphics@Graphics[Rectangle[{0, 0}, {1, 1}]],
ScalingTransform[{.5, .5}, {.5, .5}]] // BoundingRegion
(*returns Cuboid[{0.25, 0.25}, {0.75, 0.75}]*)
but weirdly this doesn't:
DiscretizeGraphics@Graphics[{GeometricTransformation[Rectangle[{0, 0}, {1, 1}],
ScalingTransform[{.5, .5}, {.5, .5}]]}]
(* returns EmptyRegion[2]*)
TransformedRegion[Rectangle[{0, 0}, {1, 1}], ScalingTransform[{.5, .5}, {.5, .5}]]
instead? $\endgroup$NormalizeGraphics
from my answer to that question instead ofNormal
, although it still returns aParallelogram
object instead of aRectangle
object. $\endgroup$