Rectangle.fromCircle constructor
Rectangle.fromCircle({
- required Vector2 center,
- required double radius,
Construct a rectangle that bounds the given circle.
The center
argument is assumed to be an offset from the origin.
Implementation
Rectangle.fromCircle({required vm.Vector2 center, required double radius})
: this.fromCenter(
center: center,
width: radius * 2,
height: radius * 2,
);