Vector2Rect.fromRect constructor
Vector2Rect.fromRect(
- Rect rect
Implementation
Vector2Rect.fromRect(this.rect)
: position = Vector2(rect.left, rect.top),
size = Vector2(rect.width, rect.height);