2点のVector2オブジェクトからRect2オブジェクト作る関数ってないですか
Rect2.new(pos:Vector2, size:Vector2)はあるけど欲しいのはRect2.new(start:Vector2, end:Vector2)なんです