operator & method

Rect operator &(
  1. Vector2 size
)

A rectangle constructor operator.

Combines two Vector2s to form a Rect whose top-left coordinate is the point given by adding this vector, the left-hand-side operand, to the origin, and whose size is the right-hand-side operand.

Implementation

Rect operator &(Vector2 size) => toPositionedRect(size);